Skip to content

Commit f70e46c

Browse files
committed
Require cffi 2.0.0b1 as minimum version
1 parent 52ebfee commit f70e46c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = []
2525

2626
[project.optional-dependencies]
2727
cffi = [
28-
'cffi>=1.17 ; python_version >= "3.13" and platform_python_implementation != "PyPy"',
28+
'cffi>=2.0.0b1 ; python_version >= "3.13" and platform_python_implementation != "PyPy"',
2929
]
3030

3131
[project.urls]
@@ -34,7 +34,7 @@ Documentation = "https://python-zstandard.readthedocs.io/en/latest/"
3434

3535
[build-system]
3636
requires = [
37-
"cffi>=1.17.0 ; platform_python_implementation != 'PyPy'",
37+
"cffi>=2.0.0b1 ; platform_python_implementation != 'PyPy'",
3838
"packaging",
3939
"setuptools",
4040
]

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
# garbage collection pitfalls.
3131
# Require 1.17 everywhere so we don't have to think about supporting older
3232
# versions.
33-
MINIMUM_CFFI_VERSION = "1.17"
33+
# Require 2.0 for improved free-threading support
34+
MINIMUM_CFFI_VERSION = "2.0"
3435

3536
ext_suffix = os.environ.get("SETUPTOOLS_EXT_SUFFIX")
3637
if ext_suffix:

0 commit comments

Comments
 (0)