Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,21 @@ classifiers = [
"Programming Language :: Python :: 3.13",
]
keywords = ["zstandard", "zstd", "compression"]
dependencies = []

[project.optional-dependencies]
cffi = [
'cffi>=1.11 ; python_version < "3.13" and platform_python_implementation != "PyPy"',
'cffi>=1.17 ; python_version >= "3.13" and platform_python_implementation != "PyPy"',
]

[project.urls]
Homepage = "https://github.com/indygreg/python-zstandard"
Documentation = "https://python-zstandard.readthedocs.io/en/latest/"

[build-system]
requires = [
"cffi>=1.17.0",
"cffi>=1.17.0 ; platform_python_implementation != 'PyPy'",
"setuptools",
]
# Need to use legacy backend because setup_zstd.py breaks build isolation.
Expand Down
8 changes: 0 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,5 @@
ext_modules=extensions,
cmdclass={"build_ext": setup_zstd.RustBuildExt},
test_suite="tests",
install_requires=[
# cffi is required on PyPy.
"cffi>=%s; platform_python_implementation == 'PyPy'"
% MINIMUM_CFFI_VERSION
],
extras_require={
"cffi": ["cffi>=%s" % MINIMUM_CFFI_VERSION],
},
tests_require=["hypothesis"],
)
Loading