Skip to content

Commit

Permalink
📦 Demand Cython 3 under Python 3.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 29, 2023
1 parent 822c1a5 commit 09ddbc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/changelog-fragments/502.packaging.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The ``Cython`` build time dependency now has the minimum
version of 3.0 under Python 3.12 and higher.
-- by :user:`webknjaz`

The previous versions of ``Cython`` are still able to build
the project under older Python versions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[build-system]
requires = [
# Essentials
"Cython", # needed by in-tree build backend `packaging/pep517_backend.py`
"Cython >= 3.0.0b3; python_version >= '3.12'", # needed by in-tree build backend `packaging/pep517_backend.py`
"Cython; python_version < '3.12'", # needed by in-tree build backend `packaging/pep517_backend.py`
"setuptools>=45", # needed by in-tree build backend `packaging/pep517_backend.py`
"tomli; python_version < '3.11'", # needed by in-tree build backend `packaging/pep517_backend.py`
"expandvars", # needed by in-tree build backend for env vars interpolation
Expand Down

0 comments on commit 09ddbc9

Please sign in to comment.