git: 1ec11957ab9d - main - archivers/py-pyzstd: Update to 0.19.0

From: Philippe Audeoud <jadawin_at_FreeBSD.org>
Date: Wed, 10 Dec 2025 13:32:11 UTC
The branch main has been updated by jadawin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1ec11957ab9deea6adca1c554999a1326bec022c

commit 1ec11957ab9deea6adca1c554999a1326bec022c
Author:     Matthew Wener <matthew@wener.org>
AuthorDate: 2025-12-10 04:05:21 +0000
Commit:     Philippe Audeoud <jadawin@FreeBSD.org>
CommitDate: 2025-12-10 13:31:45 +0000

    archivers/py-pyzstd: Update to 0.19.0
    
    Changelog:
    https://github.com/Rogdham/pyzstd/blob/0.19.0/CHANGELOG.md
    
    PR:             291535
---
 archivers/py-pyzstd/Makefile                   | 21 +++++++++++++--------
 archivers/py-pyzstd/distinfo                   |  6 +++---
 archivers/py-pyzstd/files/patch-pyproject.toml | 10 ----------
 3 files changed, 16 insertions(+), 21 deletions(-)

diff --git a/archivers/py-pyzstd/Makefile b/archivers/py-pyzstd/Makefile
index 3533a880fd34..c86c84aad76a 100644
--- a/archivers/py-pyzstd/Makefile
+++ b/archivers/py-pyzstd/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pyzstd
-DISTVERSION=	0.18.0
+DISTVERSION=	0.19.0
 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..51fd8b47a858 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 = 1765338950
+SHA256 (pyzstd-0.19.0.tar.gz) = 44e7b9be7b445aac742003ddee52ca31385d52dffb8c60adf633fad8e795f10d
+SIZE (pyzstd-0.19.0.tar.gz) = 69457
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"