diff --git a/archivers/py-zstandard/Makefile b/archivers/py-zstandard/Makefile index 842829a9d505..316ce4741f6f 100644 --- a/archivers/py-zstandard/Makefile +++ b/archivers/py-zstandard/Makefile @@ -1,28 +1,32 @@ PORTNAME= zstandard -DISTVERSION= 0.23.0 -PORTREVISION= 1 +DISTVERSION= 0.25.0 CATEGORIES= archivers python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Zstandard bindings for Python, a full-featured version WWW= https://github.com/indygreg/python-zstandard LICENSE= BSD2CLAUSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8.0:devel/py-cffi@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cffi>=1.17:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} #LIB_DEPENDS= libzstd.so:archivers/zstd TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} USES= localbase python -USE_PYTHON= distutils autoplist +USE_PYTHON= pep517 autoplist #PYDISTUTILS_BUILDARGS= --system-zstd # breaks in runtime due to version mismatch, keep disabled until this is fixed: https://github.com/indygreg/python-zstandard/issues/132 post-install: @cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zstandard && ${STRIP_CMD} backend_c*.so _cffi*.so do-test: # runs the internal testsuite, tests are unreliable or faulty: https://github.com/indygreg/python-zstandard/issues/133 @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_BUILDARGS} test +# tests as of 0.25.0: Ran 292 tests in 0.199s + .include diff --git a/archivers/py-zstandard/distinfo b/archivers/py-zstandard/distinfo index f4715250cd8c..3c58298aa307 100644 --- a/archivers/py-zstandard/distinfo +++ b/archivers/py-zstandard/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1721029661 -SHA256 (zstandard-0.23.0.tar.gz) = b2d8c62d08e7255f68f7a740bae85b3c9b8e5466baa9cbf7f57f1cde0ac6bc09 -SIZE (zstandard-0.23.0.tar.gz) = 681701 +TIMESTAMP = 1776521155 +SHA256 (zstandard-0.25.0.tar.gz) = 7713e1179d162cf5c7906da876ec2ccb9c3a9dcbdffef0cc7f70c3667a205f0b +SIZE (zstandard-0.25.0.tar.gz) = 711513 diff --git a/archivers/py-zstandard/files/patch-pyproject.toml b/archivers/py-zstandard/files/patch-pyproject.toml new file mode 100644 index 000000000000..32a490bd59e5 --- /dev/null +++ b/archivers/py-zstandard/files/patch-pyproject.toml @@ -0,0 +1,24 @@ +--- pyproject.toml.orig 2025-09-14 20:35:55 UTC ++++ pyproject.toml +@@ -6,7 +6,7 @@ authors = [ + authors = [ + { name = "Gregory Szorc", email = "gregory.szorc@gmail.com" }, + ] +-license = "BSD-3-Clause" ++license = {text = "BSD-3-Clause"} + requires-python = ">=3.9" + classifiers = [ + "Development Status :: 5 - Production/Stable", +@@ -35,10 +35,10 @@ requires = [ + + [build-system] + requires = [ +- "cffi~=1.17; platform_python_implementation != 'PyPy' and python_version < '3.14'", ++ "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'", + "packaging", +- "setuptools>=77.0.0", ++ "setuptools", + ] + build-backend = "setuptools.build_meta" +