git: 012848c1445a - main - science/py-gsd: update 3.4.1 → 5.0.1

Yuri Victorovich <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=012848c1445ad7ac3d5c9b5c25f7d1f479f6042c

commit 012848c1445ad7ac3d5c9b5c25f7d1f479f6042c
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-08 02:54:38 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-08 05:12:49 +0000

    science/py-gsd: update 3.4.1 → 5.0.1
---
 science/py-gsd/Makefile                   | 18 +++++++-----------
 science/py-gsd/distinfo                   |  6 +++---
 science/py-gsd/files/patch-pyproject.toml | 23 +++++++++++++++++++++++
 3 files changed, 33 insertions(+), 14 deletions(-)

diff --git a/science/py-gsd/Makefile b/science/py-gsd/Makefile
index 3b3d2b685433..9f3fdbd0efc8 100644
--- a/science/py-gsd/Makefile
+++ b/science/py-gsd/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	gsd
-DISTVERSION=	3.4.1
-PORTREVISION=	3
+DISTVERSION=	5.0.1
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,20 +11,17 @@ WWW=		https://bitbucket.org/glotzer/gsd/wiki/Home
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=2.0:math/py-numpy@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.0:math/py-numpy@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils cython autoplist pytest
+USE_PYTHON=	pep517 cython autoplist pytest
 
 TEST_WRKSRC=	${WRKSRC}/gsd/test
-#TEST_ARGS=	--pyargs gsd -p gsd.pytest_plugin_validate --validate # enable this line to run longer tests, see https://gsd.readthedocs.io/en/v2.6.0/installation.html#run-tests
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
-post-extract: # force cythonization because pre-cythonized fl.c fails to complile
-	@${RM} ${WRKSRC}/gsd/fl.c
-
-post-install:
-	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gsd/fl*.so
+# tests as of 5.0.1: 151 passed, 1 warning in 13.30s
 
 .include <bsd.port.mk>
diff --git a/science/py-gsd/distinfo b/science/py-gsd/distinfo
index aabddfe21d9a..5bedb201de2c 100644
--- a/science/py-gsd/distinfo
+++ b/science/py-gsd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1729667935
-SHA256 (gsd-3.4.1.tar.gz) = 468e513da06bea35efc7013d2341fe2bd2e3fd3be4a9a600f71b4d31e5b2192a
-SIZE (gsd-3.4.1.tar.gz) = 185315
+TIMESTAMP = 1786151937
+SHA256 (gsd-5.0.1.tar.gz) = c072d1ee934864d618039f3e7448bc79f31fe1a0f1fabfdb9cd4143a7ab2376b
+SIZE (gsd-5.0.1.tar.gz) = 202182
diff --git a/science/py-gsd/files/patch-pyproject.toml b/science/py-gsd/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e6aa05f7f654
--- /dev/null
+++ b/science/py-gsd/files/patch-pyproject.toml
@@ -0,0 +1,23 @@
+Fix license field format and lower setuptools requirement
+
+--- pyproject.toml.orig2026-08-07 19:14:13 UTC
++++ pyproject.toml
+@@ -4,8 +4,7 @@ name = "gsd"
+ version = "5.0.1"
+ description = "General simulation data file format."
+ readme = "README.md"
+-license = "BSD-2-Clause"
+-license-files = ["LICENSE"]
++license = {text = "BSD-2-Clause"}
+ authors = [
+     {name = "Joshua A. Anderson", email = "[email protected]"},
+ ]
+@@ -31,7 +30,7 @@ packages = ["gsd", "gsd.test"]
+ packages = ["gsd", "gsd.test"]
+ 
+ [build-system]
+-requires = ["setuptools>=77.0.0",
++requires = ["setuptools>=63.1.0",
+             "wheel",
+             "Cython>=3.1",
+             "numpy>=2.0.0"]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.