Skip to content

Commit e7efd02

Browse files
authored
DEPS: Upgrade Deps for Python 3.10 (#43729)
1 parent 2aa3ffe commit e7efd02

20 files changed

+38
-33
lines changed

.github/actions/build_pandas/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ runs:
1313
- name: Build Pandas
1414
run: |
1515
python setup.py build_ext -j 2
16-
python -m pip install -e . --no-build-isolation --no-use-pep517
16+
python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index
1717
shell: bash -l {0}

.github/workflows/sdist.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
python-version: ["3.8", "3.9"]
26+
python-version: ["3.8", "3.9", "3.10"]
2727
concurrency:
2828
group: ${{github.ref}}-${{matrix.python-version}}-sdist
2929
cancel-in-progress: ${{github.event_name == 'pull_request'}}
@@ -53,13 +53,24 @@ jobs:
5353
- uses: conda-incubator/setup-miniconda@v2
5454
with:
5555
activate-environment: pandas-sdist
56-
python-version: ${{ matrix.python-version }}
56+
python-version: '${{ matrix.python-version }}'
5757

5858
- name: Install pandas from sdist
5959
run: |
60-
conda list
60+
pip list
6161
python -m pip install dist/*.gz
6262
63+
- name: Force oldest supported NumPy
64+
run: |
65+
case "${{matrix.python-version}}" in
66+
3.8)
67+
pip install numpy==1.18.5 ;;
68+
3.9)
69+
pip install numpy==1.19.3 ;;
70+
3.10)
71+
pip install numpy==1.21.2 ;;
72+
esac
73+
6374
- name: Import pandas
6475
run: |
6576
cd ..

ci/deps/actions-38-db-min.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.21
8+
- cython>=0.29.24
99
- pytest>=6.0
1010
- pytest-cov
1111
- pytest-xdist>=1.31

ci/deps/actions-38-db.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.21
8+
- cython>=0.29.24
99
- pytest>=6.0
1010
- pytest-xdist>=1.31
1111
- hypothesis>=5.5.3

ci/deps/actions-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.21
8+
- cython>=0.29.24
99
- pytest>=6.0
1010
- pytest-cov
1111
- pytest-xdist>=1.31

ci/deps/actions-38-locale_slow.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.21
9+
- cython>=0.29.24
1010
- pytest>=6.0
1111
- pytest-cov
1212
- pytest-xdist>=1.31

ci/deps/actions-38-minimum_versions.yaml

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

77
# tools
8-
- cython=0.29.21
8+
- cython=0.29.24
99
- pytest>=6.0
1010
- pytest-cov
1111
- pytest-xdist>=1.31

ci/deps/actions-38-slow.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.21
8+
- cython>=0.29.24
99
- pytest>=6.0
1010
- pytest-cov
1111
- pytest-xdist>=1.31

ci/deps/actions-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.21
9+
- cython>=0.29.24
1010
- pytest>=6.0
1111
- pytest-cov
1212
- pytest-xdist>=1.31

ci/deps/actions-39-numpydev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- pytz
1616
- pip
1717
- pip:
18-
- cython==0.29.21 # GH#34014
18+
- cython==0.29.24 # GH#34014
1919
- "--extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple"
2020
- "--pre"
2121
- "numpy"

ci/deps/actions-39-slow.yaml

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

88
# tools
9-
- cython>=0.29.21
9+
- cython>=0.29.24
1010
- pytest>=6.0
1111
- pytest-cov
1212
- pytest-xdist>=1.31

ci/deps/actions-39.yaml

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

77
# tools
8-
- cython>=0.29.21
8+
- cython>=0.29.24
99
- pytest>=6.0
1010
- pytest-cov
1111
- pytest-xdist>=1.31

ci/deps/azure-macos-38.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ dependencies:
3232
- xlwt
3333
- pip
3434
- pip:
35-
- cython>=0.29.21
35+
- cython>=0.29.24
3636
- pyreadstat
3737
- pyxlsb

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.21
9+
- cython>=0.29.24
1010
- pytest>=6.0
1111
- pytest-xdist>=1.31
1212
- hypothesis>=5.5.3

ci/deps/azure-windows-39.yaml

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

88
# tools
9-
- cython>=0.29.21
9+
- cython>=0.29.24
1010
- pytest>=6.0
1111
- pytest-xdist>=1.31
1212
- hypothesis>=5.5.3

ci/deps/circle-38-arm64.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.21
8+
- cython>=0.29.24
99
- pytest>=6.0
1010
- pytest-xdist>=1.31
1111
- hypothesis>=5.5.3

doc/source/whatsnew/v1.3.4.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Bug fixes
4242

4343
Other
4444
~~~~~
45-
-
45+
- The minimum version of Cython needed to compile pandas is now ``0.29.24`` (:issue:`43729`)
4646
-
4747

4848
.. ---------------------------------------------------------------------------

pyproject.toml

+2-12
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,8 @@
44
requires = [
55
"setuptools>=51.0.0",
66
"wheel",
7-
"Cython>=0.29.21,<3", # Note: sync with setup.py
8-
# Numpy requirements for different OS/architectures
9-
# Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml (which is also licensed under BSD)
10-
"numpy==1.17.3; python_version=='3.7' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
11-
"numpy==1.18.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
12-
"numpy==1.19.3; python_version>='3.9' and (platform_machine!='arm64' or platform_system!='Darwin')",
13-
# Aarch64(Python 3.9 requirements are the same as AMD64)
14-
"numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'",
15-
"numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'",
16-
# Darwin Arm64
17-
"numpy>=1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'",
18-
"numpy>=1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'"
7+
"Cython>=0.29.24,<3", # Note: sync with setup.py
8+
"oldest-supported-numpy>=0.10"
199
]
2010
# uncomment to enable pep517 after versioneer problem is fixed.
2111
# https://github.com/python-versioneer/python-versioneer/issues/193

setup.cfg

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers =
2121
Programming Language :: Python :: 3 :: Only
2222
Programming Language :: Python :: 3.8
2323
Programming Language :: Python :: 3.9
24+
Programming Language :: Python :: 3.10
2425
Topic :: Scientific/Engineering
2526
project_urls =
2627
Bug Tracker = https://github.com/pandas-dev/pandas/issues
@@ -30,7 +31,10 @@ project_urls =
3031
[options]
3132
packages = find:
3233
install_requires =
33-
numpy>=1.18.5
34+
numpy>=1.18.5; platform_machine!='aarch64' and platform_machine!='arm64' and python_version<'3.10'
35+
numpy>=1.19.2; platform_machine=='aarch64' and python_version<'3.10'
36+
numpy>=1.20.0; platform_machine=='arm64' and python_version<'3.10'
37+
numpy>=1.21.0; python_version>='3.10'
3438
python-dateutil>=2.8.1
3539
pytz>=2020.1
3640
python_requires = >=3.8

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def is_platform_mac():
3737
return sys.platform == "darwin"
3838

3939

40-
min_cython_ver = "0.29.21" # note: sync with pyproject.toml
40+
min_cython_ver = "0.29.24" # note: sync with pyproject.toml
4141

4242
try:
4343
from Cython import (

0 commit comments

Comments
 (0)