From 015ad12ec0f65a9b3db2a5f713b92a6aa104b8b5 Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Thu, 21 Aug 2025 17:27:42 +0100 Subject: [PATCH] Upgrade required Cython to 3.1 --- .github/workflows/dev.yml | 2 +- ci/conda_env_python.txt | 2 +- python/pyproject.toml | 2 +- python/requirements-build.txt | 2 +- python/requirements-wheel-build.txt | 2 +- python/setup.py | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 0627e4e29155..51662e15008d 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -105,7 +105,7 @@ jobs: shell: bash run: | gem install test-unit - pip install "cython>=3" setuptools pytest requests setuptools-scm + pip install "cython>=3.1" setuptools pytest requests setuptools-scm - name: Run Release Test shell: bash run: | diff --git a/ci/conda_env_python.txt b/ci/conda_env_python.txt index 9a48f26b79c6..4e3fd9f2de71 100644 --- a/ci/conda_env_python.txt +++ b/ci/conda_env_python.txt @@ -20,7 +20,7 @@ # Not a direct dependency of s3fs, but needed for our s3fs fixture boto3 cffi -cython>=3 +cython>=3.1 cloudpickle fsspec hypothesis diff --git a/python/pyproject.toml b/python/pyproject.toml index 0bc8db8c7914..781e2e50284a 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -17,7 +17,7 @@ [build-system] requires = [ - "cython >= 3", + "cython >= 3.1", # Starting with NumPy 1.25, NumPy is (by default) as far back compatible # as oldest-support-numpy was (customizable with a NPY_TARGET_VERSION # define). For older Python versions (where NumPy 1.25 is not yet available) diff --git a/python/requirements-build.txt b/python/requirements-build.txt index 00b523ee5212..088aaac86b77 100644 --- a/python/requirements-build.txt +++ b/python/requirements-build.txt @@ -1,4 +1,4 @@ -cython>=3 +cython>=3.1 oldest-supported-numpy>=0.14; python_version<'3.9' numpy>=1.25; python_version>='3.9' setuptools_scm>=8 diff --git a/python/requirements-wheel-build.txt b/python/requirements-wheel-build.txt index 38e59ce45ab8..334d285b855e 100644 --- a/python/requirements-wheel-build.txt +++ b/python/requirements-wheel-build.txt @@ -1,4 +1,4 @@ -cython>=3 +cython>=3.1 oldest-supported-numpy>=0.14; python_version<'3.9' numpy>=2.0.0; python_version>='3.9' setuptools_scm diff --git a/python/setup.py b/python/setup.py index 88119e2d2aad..b6fea83eb03e 100755 --- a/python/setup.py +++ b/python/setup.py @@ -48,9 +48,9 @@ ) -if Cython.__version__ < '3': +if Cython.__version__ < '3.1': raise Exception( - 'Please update your Cython version. Supported Cython >= 3') + 'Please update your Cython version. Supported Cython >= 3.1') setup_dir = os.path.abspath(os.path.dirname(__file__))