Files
macports-ports/python/py-zstd/files/patch-cffideps.diff
David Gilman f99b63d4d6 py-zstd: fix dependencies; drop py39, add py314 subport
- fix system zstd usage
- allow cffi 2.x on older Python versions
2025-11-06 13:56:26 -05:00

31 lines
1.2 KiB
Diff

diff -ru zstandard-0.25.0-orig/pyproject.toml zstandard-0.25.0/pyproject.toml
--- pyproject.toml 2025-11-01 19:08:02.362346000 -0400
+++ pyproject.toml 2025-11-02 10:13:06.989207180 -0500
@@ -25,7 +25,7 @@
[project.optional-dependencies]
cffi = [
- "cffi~=1.17; platform_python_implementation != 'PyPy' and python_version < '3.14'",
+ "cffi>=2.0.0b; platform_python_implementation != 'PyPy' and python_version < '3.14'",
"cffi>=2.0.0b; platform_python_implementation != 'PyPy' and python_version >= '3.14'",
]
@@ -35,7 +35,7 @@
[build-system]
requires = [
- "cffi~=1.17; platform_python_implementation != 'PyPy' and python_version < '3.14'",
+ "cffi>=2.0.0b; platform_python_implementation != 'PyPy' and python_version < '3.14'",
"cffi>=2.0.0b; platform_python_implementation != 'PyPy' and python_version >= '3.14'",
"packaging",
"setuptools>=77.0.0",
@@ -44,7 +44,7 @@
[dependency-groups]
dev = [
- "cffi~=1.17; platform_python_implementation != 'PyPy' and python_version < '3.14'",
+ "cffi>=2.0.0b; platform_python_implementation != 'PyPy' and python_version < '3.14'",
"cffi>=2.0.0b; platform_python_implementation != 'PyPy' and python_version >= '3.14'",
"hypothesis==6.111.0",
"mypy>=1.17.1",