Skip to content

Commit 11d5fc9

Browse files
authored
BLD/CI: fix py39 ci #36296 (#36393)
1 parent 0d4a1c1 commit 11d5fc9

25 files changed

+40
-32
lines changed

.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ matrix:
6262
- arch: arm64
6363
env:
6464
- JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)"
65-
- dist: bionic
66-
env:
67-
- JOB="3.9-dev" PATTERN="(not slow and not network and not clipboard)"
6865

6966

7067
before_install:

asv_bench/asv.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// followed by the pip installed packages).
4040
"matrix": {
4141
"numpy": [],
42-
"Cython": ["0.29.16"],
42+
"Cython": ["0.29.21"],
4343
"matplotlib": [],
4444
"sqlalchemy": [],
4545
"scipy": [],

ci/build39.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
sudo apt-get install build-essential gcc xvfb
55
pip install --no-deps -U pip wheel setuptools
6-
pip install numpy python-dateutil pytz pytest pytest-xdist hypothesis
7-
pip install cython --pre # https://github.com/cython/cython/issues/3395
6+
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis
87

98
python setup.py build_ext -inplace
109
python -m pip install --no-build-isolation -e .

ci/deps/azure-37-32bit.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ dependencies:
2121
# see comment above
2222
- pip
2323
- pip:
24-
- cython>=0.29.16
24+
- cython>=0.29.21
2525
- numpy>=1.16.5
2626
- pytest>=5.0.1

ci/deps/azure-37-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- pytest-asyncio

ci/deps/azure-37-locale_slow.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/azure-37-minimum_versions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies:
55
- python=3.7.1
66

77
# tools
8-
- cython=0.29.16
8+
- cython=0.29.21
99
- pytest=5.0.1
1010
- pytest-xdist>=1.21
1111
- hypothesis>=3.58.0

ci/deps/azure-37-slow.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/azure-38-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies:
55
- python=3.8.*
66

77
# tools
8-
- cython>=0.29.16
8+
- cython>=0.29.21
99
- pytest>=5.0.1
1010
- pytest-xdist>=1.21
1111
- pytest-asyncio>=0.12.0

ci/deps/azure-38-numpydev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- pytz
1515
- pip
1616
- pip:
17-
- cython==0.29.16 # GH#34014
17+
- cython==0.29.21 # GH#34014
1818
- "git+git://github.com/dateutil/dateutil.git"
1919
- "--extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple"
2020
- "--pre"

ci/deps/azure-macos-37.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ dependencies:
3131
- xlwt
3232
- pip
3333
- pip:
34-
- cython>=0.29.16
34+
- cython>=0.29.21
3535
- pyreadstat
3636
- pyxlsb

ci/deps/azure-windows-37.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/azure-windows-38.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.8.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/travis-37-arm64.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.13
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/travis-37-cov.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/travis-37-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/travis-37.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.7.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

ci/deps/travis-38.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- python=3.8.*
77

88
# tools
9-
- cython>=0.29.16
9+
- cython>=0.29.21
1010
- pytest>=5.0.1
1111
- pytest-xdist>=1.21
1212
- hypothesis>=3.58.0

doc/source/getting_started/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Instructions for installing from source,
1818
Python version support
1919
----------------------
2020

21-
Officially Python 3.7.1 and above, and 3.8.
21+
Officially Python 3.7.1 and above, 3.8, and 3.9.
2222

2323
Installing pandas
2424
-----------------

doc/source/whatsnew/v1.1.3.rst

+15
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ including other versions of pandas.
1010

1111
.. ---------------------------------------------------------------------------
1212
13+
Enhancements
14+
~~~~~~~~~~~~
15+
16+
Added support for new Python version
17+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18+
19+
Pandas 1.1.3 now supports Python 3.9 (:issue:`36296`).
20+
21+
Development Changes
22+
^^^^^^^^^^^^^^^^^^^
23+
24+
- The minimum version of Cython is now the most recent bug-fix version (0.29.21) (:issue:`36296`).
25+
26+
.. ---------------------------------------------------------------------------
27+
1328
.. _whatsnew_113.regressions:
1429

1530
Fixed regressions

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- asv
1313

1414
# building
15-
- cython>=0.29.16
15+
- cython>=0.29.21
1616

1717
# code checks
1818
- black=19.10b0

pandas/_libs/writers.pyx

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import cython
2-
from cython import Py_ssize_t
3-
4-
from cpython.bytes cimport PyBytes_GET_SIZE
5-
from cpython.unicode cimport PyUnicode_GET_SIZE
6-
72
import numpy as np
83

4+
from cpython cimport PyBytes_GET_SIZE, PyUnicode_GET_LENGTH
95
from numpy cimport ndarray, uint8_t
106

117
ctypedef fused pandas_string:
@@ -144,7 +140,7 @@ cpdef inline Py_ssize_t word_len(object val):
144140
Py_ssize_t l = 0
145141

146142
if isinstance(val, str):
147-
l = PyUnicode_GET_SIZE(val)
143+
l = PyUnicode_GET_LENGTH(val)
148144
elif isinstance(val, bytes):
149145
l = PyBytes_GET_SIZE(val)
150146

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
requires = [
55
"setuptools",
66
"wheel",
7-
"Cython>=0.29.16,<3", # Note: sync with setup.py
7+
"Cython>=0.29.21,<3", # Note: sync with setup.py
88
"numpy==1.16.5; python_version=='3.7' and platform_system!='AIX'",
99
"numpy==1.17.3; python_version>='3.8' and platform_system!='AIX'",
1010
"numpy==1.16.5; python_version=='3.7' and platform_system=='AIX'",

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ numpy>=1.16.5
55
python-dateutil>=2.7.3
66
pytz
77
asv
8-
cython>=0.29.16
8+
cython>=0.29.21
99
black==19.10b0
1010
cpplint
1111
flake8<3.8.0

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def is_platform_mac():
3434

3535

3636
min_numpy_ver = "1.16.5"
37-
min_cython_ver = "0.29.16" # note: sync with pyproject.toml
37+
min_cython_ver = "0.29.21" # note: sync with pyproject.toml
3838

3939
try:
4040
import Cython
@@ -199,6 +199,7 @@ def build_extensions(self):
199199
"Programming Language :: Python :: 3",
200200
"Programming Language :: Python :: 3.7",
201201
"Programming Language :: Python :: 3.8",
202+
"Programming Language :: Python :: 3.9",
202203
"Programming Language :: Cython",
203204
"Topic :: Scientific/Engineering",
204205
]

0 commit comments

Comments
 (0)