diff --git a/.github/requirements/build-requirements.in b/.github/requirements/build-requirements.in index 29b1503efff1..b55742d0c311 100644 --- a/.github/requirements/build-requirements.in +++ b/.github/requirements/build-requirements.in @@ -1,7 +1,7 @@ # Must be kept sync with build-system.requires at pyproject.toml setuptools!=74.0.0 -cffi>=1.12; platform_python_implementation != 'PyPy' and python_version < '3.14' -cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.14' +cffi>=1.14; platform_python_implementation != 'PyPy' and python_version == '3.8' +cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9' maturin>=1,<2 # Must be kept sync with build-system.requires at vectors/pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index 531956cec174..8b1dfb2b9e6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,8 @@ requires = [ "maturin>=1.9.4,<2", # Must be kept in sync with `project.dependencies` - "cffi>=1.14; platform_python_implementation != 'PyPy' and python_version < '3.14'", - "cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.14'", + "cffi>=1.14; platform_python_implementation != 'PyPy' and python_version == '3.8'", + "cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9'", # Used by cffi (which import distutils, and in Python 3.12, distutils has # been removed from the stdlib, but installing setuptools puts it back) as # well as our build.rs for the rust/cffi bridge. @@ -51,8 +51,8 @@ classifiers = [ requires-python = ">=3.8,!=3.9.0,!=3.9.1" dependencies = [ # Must be kept in sync with `build-system.requires` - "cffi>=1.14; platform_python_implementation != 'PyPy' and python_version < '3.14'", - "cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.14'", + "cffi>=1.14; platform_python_implementation != 'PyPy' and python_version == '3.8'", + "cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9'", # Must be kept in sync with ./.github/requirements/build-requirements.{in,txt} "typing-extensions>=4.13.2; python_version < '3.11'", ]