Skip to content

Commit 940592b

Browse files
authored
GH-47370: [Python] Require Cython 3.1 (#47396)
### Rationale for this change Upgrading Cython to version 3.1 ### What changes are included in this PR? Replace all mentions of earlier versions with 3.1 ### Are these changes tested? Nah but I'll run CI ### Are there any user-facing changes? Only if they're using Cython < 3.1 * GitHub Issue: #47370 Authored-by: Nic Crane <[email protected]> Signed-off-by: AlenkaF <[email protected]>
1 parent 5b5f25c commit 940592b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
shell: bash
106106
run: |
107107
gem install test-unit
108-
pip install "cython>=3" setuptools pytest requests setuptools-scm
108+
pip install "cython>=3.1" setuptools pytest requests setuptools-scm
109109
- name: Run Release Test
110110
shell: bash
111111
run: |

ci/conda_env_python.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Not a direct dependency of s3fs, but needed for our s3fs fixture
2121
boto3
2222
cffi
23-
cython>=3
23+
cython>=3.1
2424
cloudpickle
2525
fsspec
2626
hypothesis

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[build-system]
1919
requires = [
20-
"cython >= 3",
20+
"cython >= 3.1",
2121
# Starting with NumPy 1.25, NumPy is (by default) as far back compatible
2222
# as oldest-support-numpy was (customizable with a NPY_TARGET_VERSION
2323
# define). For older Python versions (where NumPy 1.25 is not yet available)

python/requirements-build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cython>=3
1+
cython>=3.1
22
oldest-supported-numpy>=0.14; python_version<'3.9'
33
numpy>=1.25; python_version>='3.9'
44
setuptools_scm>=8

python/requirements-wheel-build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cython>=3
1+
cython>=3.1
22
oldest-supported-numpy>=0.14; python_version<'3.9'
33
numpy>=2.0.0; python_version>='3.9'
44
setuptools_scm

python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
)
4949

5050

51-
if Cython.__version__ < '3':
51+
if Cython.__version__ < '3.1':
5252
raise Exception(
53-
'Please update your Cython version. Supported Cython >= 3')
53+
'Please update your Cython version. Supported Cython >= 3.1')
5454

5555
setup_dir = os.path.abspath(os.path.dirname(__file__))
5656

0 commit comments

Comments
 (0)