Skip to content

Commit

Permalink
Backport PR #43729: DEPS: Upgrade Deps for Python 3.10 (#44036)
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Oct 15, 2021
1 parent 554439a commit cf44b88
Show file tree
Hide file tree
Showing 21 changed files with 44 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build_pandas/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ runs:
- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517
python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index
shell: bash -l {0}
22 changes: 19 additions & 3 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
concurrency:
group: ${{github.ref}}-${{matrix.python-version}}-sdist
cancel-in-progress: ${{github.event_name == 'pull_request'}}

steps:
- uses: actions/checkout@v2
Expand All @@ -50,13 +53,26 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandas-sdist
python-version: ${{ matrix.python-version }}
python-version: '${{ matrix.python-version }}'

- name: Install pandas from sdist
run: |
conda list
pip list
python -m pip install dist/*.gz
- name: Force oldest supported NumPy
run: |
case "${{matrix.python-version}}" in
3.7)
pip install numpy==1.17.3 ;;
3.8)
pip install numpy==1.18.5 ;;
3.9)
pip install numpy==1.19.3 ;;
3.10)
pip install numpy==1.21.2 ;;
esac
- name: Import pandas
run: |
cd ..
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-37-db-min.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-37-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-xdist>=1.21
- hypothesis>=3.58.0
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-37-locale_slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-37-minimum_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.7.1

# tools
- cython=0.29.21
- cython=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-37-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-38-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.8.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-38-numpydev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- pytz
- pip
- pip:
- cython==0.29.21 # GH#34014
- cython==0.29.24 # GH#34014
- "--extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple"
- "--pre"
- "numpy"
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-38-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.8.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.8.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.9.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.21
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/azure-macos-37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ dependencies:
- xlwt
- pip
- pip:
- cython>=0.29.21
- cython>=0.29.24
- pyreadstat
- pyxlsb
2 changes: 1 addition & 1 deletion ci/deps/azure-windows-37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-xdist>=1.21
- hypothesis>=3.58.0
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/azure-windows-38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.8.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-xdist>=1.21
- hypothesis>=3.58.0
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/circle-37-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- python=3.7.*

# tools
- cython>=0.29.21
- cython>=0.29.24
- pytest>=6.0
- pytest-xdist>=1.21
- hypothesis>=3.58.0
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v1.3.4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Bug fixes

Other
~~~~~
-
- The minimum version of Cython needed to compile pandas is now ``0.29.24`` (:issue:`43729`)
-

.. ---------------------------------------------------------------------------
Expand Down
14 changes: 2 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@
requires = [
"setuptools>=51.0.0",
"wheel",
"Cython>=0.29.21,<3", # Note: sync with setup.py
# Numpy requirements for different OS/architectures
# Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml (which is also licensed under BSD)
"numpy==1.17.3; python_version=='3.7' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
"numpy==1.18.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
"numpy==1.19.3; python_version>='3.9' and (platform_machine!='arm64' or platform_system!='Darwin')",
# Aarch64(Python 3.9 requirements are the same as AMD64)
"numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'",
"numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'",
# Darwin Arm64
"numpy>=1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'",
"numpy>=1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'"
"Cython>=0.29.24,<3", # Note: sync with setup.py
"oldest-supported-numpy>=0.10"
]
# uncomment to enable pep517 after versioneer problem is fixed.
# https://github.com/python-versioneer/python-versioneer/issues/193
Expand Down
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering
project_urls =
Bug Tracker = https://github.com/pandas-dev/pandas/issues
Expand All @@ -31,7 +32,10 @@ project_urls =
[options]
packages = find:
install_requires =
numpy>=1.17.3
numpy>=1.17.3; platform_machine!='aarch64' and platform_machine!='arm64' and python_version<'3.10'
numpy>=1.19.2; platform_machine=='aarch64' and python_version<'3.10'
numpy>=1.20.0; platform_machine=='arm64' and python_version<'3.10'
numpy>=1.21.0; python_version>='3.10'
python-dateutil>=2.7.3
pytz>=2017.3
python_requires = >=3.7.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def is_platform_mac():
return sys.platform == "darwin"


min_cython_ver = "0.29.21" # note: sync with pyproject.toml
min_cython_ver = "0.29.24" # note: sync with pyproject.toml

try:
from Cython import (
Expand Down

0 comments on commit cf44b88

Please sign in to comment.