Skip to content

Commit 2726efd

Browse files
authored
Depend on CFFI 2.0.0 or newer on Python > 3.8 (#13448)
* Depend on CFFI 2.0.0 or newer on Python > 3.8 * fix comparison and update build_requirements.in * fix typo
1 parent 6223062 commit 2726efd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/requirements/build-requirements.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Must be kept sync with build-system.requires at pyproject.toml
22
setuptools!=74.0.0
3-
cffi>=1.12; platform_python_implementation != 'PyPy' and python_version < '3.14'
4-
cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.14'
3+
cffi>=1.14; platform_python_implementation != 'PyPy' and python_version == '3.8'
4+
cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9'
55
maturin>=1,<2
66

77
# Must be kept sync with build-system.requires at vectors/pyproject.toml

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ requires = [
55
"maturin>=1.9.4,<2",
66

77
# Must be kept in sync with `project.dependencies`
8-
"cffi>=1.14; platform_python_implementation != 'PyPy' and python_version < '3.14'",
9-
"cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.14'",
8+
"cffi>=1.14; platform_python_implementation != 'PyPy' and python_version == '3.8'",
9+
"cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9'",
1010
# Used by cffi (which import distutils, and in Python 3.12, distutils has
1111
# been removed from the stdlib, but installing setuptools puts it back) as
1212
# well as our build.rs for the rust/cffi bridge.
@@ -51,8 +51,8 @@ classifiers = [
5151
requires-python = ">=3.8,!=3.9.0,!=3.9.1"
5252
dependencies = [
5353
# Must be kept in sync with `build-system.requires`
54-
"cffi>=1.14; platform_python_implementation != 'PyPy' and python_version < '3.14'",
55-
"cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.14'",
54+
"cffi>=1.14; platform_python_implementation != 'PyPy' and python_version == '3.8'",
55+
"cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9'",
5656
# Must be kept in sync with ./.github/requirements/build-requirements.{in,txt}
5757
"typing-extensions>=4.13.2; python_version < '3.11'",
5858
]

0 commit comments

Comments
 (0)