Skip to content

Commit f30c42e

Browse files
authored
Loosen the Cython build dependency specifier to >= 3.2.0
PR #214 This patch changes the Cython build dependency specifier in `get_requires_for_build_wheel()` PEP 517 hook from `~= 3.2.0` (`>= 3.2.0, < 3.3.0`) to `>= 3.2.0`, removing the upper version bound. The pinned version in `requirements/cython.txt` (`== 3.2.4`) is unchanged and continues to control the exact Cython version used in CI via `cibuildwheel`. This change only affects downstream packagers who disable build isolation or set their own constraints.
1 parent 35b1b5b commit f30c42e

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGES/184.packaging.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Update Cython to version 3.2.3 -- by :user:`jameshilliard`.
1+
Changed the Cython build dependency from ``~= 3.1.0`` to ``>= 3.2.0``,
2+
removing the upper version bound to avoid conflicts for downstream packagers
3+
-- by :user:`jameshilliard` and :user:`gundalow`.
4+
5+
The upstream Cython version is pinned to 3.2.4 in the CI/CD environment.

CHANGES/188.packaging.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
184.packaging.rst

CHANGES/214.packaging.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
184.packaging.rst

packaging/pep517_backend/_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def get_requires_for_build_wheel(
376376
if is_pure_python_build:
377377
c_ext_build_deps = []
378378
else:
379-
c_ext_build_deps = ['Cython ~= 3.2.0']
379+
c_ext_build_deps = ['Cython >= 3.2.0']
380380

381381
return _setuptools_get_requires_for_build_wheel(
382382
config_settings=config_settings,

0 commit comments

Comments
 (0)