summaryrefslogtreecommitdiff
path: root/archivers/py-pyzstd
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/py-pyzstd')
-rw-r--r--archivers/py-pyzstd/Makefile21
-rw-r--r--archivers/py-pyzstd/distinfo6
-rw-r--r--archivers/py-pyzstd/files/patch-pyproject.toml10
3 files changed, 16 insertions, 21 deletions
diff --git a/archivers/py-pyzstd/Makefile b/archivers/py-pyzstd/Makefile
index 3533a880fd34..a03fed64117c 100644
--- a/archivers/py-pyzstd/Makefile
+++ b/archivers/py-pyzstd/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pyzstd
-DISTVERSION= 0.18.0
+DISTVERSION= 0.19.1
CATEGORIES= archivers python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,9 +11,8 @@ WWW= https://github.com/Rogdham/pyzstd
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PY_SETUPTOOLS} \
- ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist pep517 pytest
@@ -21,10 +20,16 @@ USE_PYTHON= autoplist pep517 pytest
TEST_ENV= ${MAKE_ENV} \
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-post-install:
- ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyzstd/_c/_zstd.cpython-${PYTHON_SUFFIX}.so
-
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31300
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+.if ${PYTHON_REL} < 31400
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.zstd>=0:devel/py-backports.zstd@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/py-pyzstd/distinfo b/archivers/py-pyzstd/distinfo
index 49112e000cea..286668a69f00 100644
--- a/archivers/py-pyzstd/distinfo
+++ b/archivers/py-pyzstd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1761775269
-SHA256 (pyzstd-0.18.0.tar.gz) = 81b6851ab1ca2e5f2c709e896a1362e3065a64f271f43db77fb7d5e4a78e9861
-SIZE (pyzstd-0.18.0.tar.gz) = 806048
+TIMESTAMP = 1765675432
+SHA256 (pyzstd-0.19.1.tar.gz) = 36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72
+SIZE (pyzstd-0.19.1.tar.gz) = 69531
diff --git a/archivers/py-pyzstd/files/patch-pyproject.toml b/archivers/py-pyzstd/files/patch-pyproject.toml
deleted file mode 100644
index 45c1f872d55f..000000000000
--- a/archivers/py-pyzstd/files/patch-pyproject.toml
+++ /dev/null
@@ -1,10 +0,0 @@
---- pyproject.toml.orig 2024-11-21 04:16:04 UTC
-+++ pyproject.toml
-@@ -1,6 +1,6 @@
- [build-system]
- # setuptools 64+ support --build-option
- # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9 under Windows
--requires = ["setuptools>=64,<74"]
-+requires = ["setuptools"]
- backend-path = ["build_script"]
- build-backend = "pyzstd_pep517"