Skip to content

Commit 6c14af1

Browse files
committed
MAINT: bump minimum required Cython version
1 parent 95e36ee commit 6c14af1

10 files changed

Lines changed: 16 additions & 22 deletions

File tree

‎INSTALL.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Building NumPy requires the following installed software:
2020
e.g., on Debian/Ubuntu one needs to install both `python3` and
2121
`python3-dev`. On Windows and macOS this is normally not an issue.
2222

23-
2) Cython >= 3.0.6
23+
2) Cython >= 3.1.0
2424

2525
3) pytest__ (optional)
2626

‎meson.build‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ elif cc.get_id() == 'msvc'
3030
'when building with MSVC')
3131
endif
3232
endif
33-
if not cy.version().version_compare('>=3.0.6')
34-
error('NumPy requires Cython >= 3.0.6')
33+
if not cy.version().version_compare('>=3.1.0')
34+
error('NumPy requires Cython >= 3.1.0')
3535
endif
3636

3737
py = import('python').find_installation(pure: false)

‎numpy/_core/tests/examples/cython/meson.build‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ cc = meson.get_compiler('c')
66
cy = meson.get_compiler('cython')
77

88
# Keep synced with pyproject.toml
9-
if not cy.version().version_compare('>=3.0.6')
10-
error('tests requires Cython >= 3.0.6')
9+
if not cy.version().version_compare('>=3.1.0')
10+
error('tests requires Cython >= 3.1.0')
1111
endif
1212

13-
cython_args = []
14-
if cy.version().version_compare('>=3.1.0')
15-
cython_args += ['-Xfreethreading_compatible=True']
16-
endif
13+
cython_args = ['-Xfreethreading_compatible=True']
1714

1815
npy_include_path = run_command(py, [
1916
'-c',

‎numpy/_core/tests/examples/limited_api/meson.build‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ cc = meson.get_compiler('c')
66
cy = meson.get_compiler('cython')
77

88
# Keep synced with pyproject.toml
9-
if not cy.version().version_compare('>=3.0.6')
10-
error('tests requires Cython >= 3.0.6')
9+
if not cy.version().version_compare('>=3.1.0')
10+
error('tests requires Cython >= 3.1.0')
1111
endif
1212

1313
npy_include_path = run_command(py, [

‎numpy/_core/tests/test_cython.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from numpy._utils import _pep440
2020

2121
# Note: keep in sync with the one in pyproject.toml
22-
required_version = "3.0.6"
22+
required_version = "3.1.0"
2323
if _pep440.parse(cython_version) < _pep440.Version(required_version):
2424
# too old or wrong cython, skip the test
2525
cython = None

‎numpy/_core/tests/test_limited_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from numpy._utils import _pep440
1818

1919
# Note: keep in sync with the one in pyproject.toml
20-
required_version = "3.0.6"
20+
required_version = "3.1.0"
2121
if _pep440.parse(cython_version) < _pep440.Version(required_version):
2222
# too old or wrong cython, skip the test
2323
cython = None

‎numpy/random/_examples/cython/meson.build‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ cc = meson.get_compiler('c')
77
cy = meson.get_compiler('cython')
88

99
# Keep synced with pyproject.toml
10-
if not cy.version().version_compare('>=3.0.6')
11-
error('tests requires Cython >= 3.0.6')
10+
if not cy.version().version_compare('>=3.1.0')
11+
error('tests requires Cython >= 3.1.0')
1212
endif
1313

14-
base_cython_args = []
15-
if cy.version().version_compare('>=3.1.0')
16-
base_cython_args += ['-Xfreethreading_compatible=True']
17-
endif
14+
base_cython_args = ['-Xfreethreading_compatible=True']
1815

1916
_numpy_abs = run_command(py3, ['-c',
2017
'import os; os.chdir(".."); import numpy; print(os.path.abspath(numpy.get_include() + "../../.."))'],

‎numpy/random/tests/test_extending.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
else:
3939
from numpy._utils import _pep440
4040
# Note: keep in sync with the one in pyproject.toml
41-
required_version = '3.0.6'
41+
required_version = '3.1.0'
4242
if _pep440.parse(cython_version) < _pep440.Version(required_version):
4343
# too old or wrong cython, skip the test
4444
cython = None

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = "mesonpy"
33
requires = [
44
"meson-python>=0.18.0",
5-
"Cython>=3.0.6", # keep in sync with version check in meson.build
5+
"Cython>=3.1.0", # keep in sync with version check in meson.build
66
]
77

88
[project]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
meson-python>=0.13.1
2-
Cython>=3.0.6
2+
Cython>=3.1.0
33
ninja
44
spin==0.15
55
build

0 commit comments

Comments
 (0)