git: ae371623524d - main - science/py-h5py: Update to 3.15.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 27 Oct 2025 16:14:05 UTC
The branch main has been updated by sunpoet:

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

commit ae371623524dadd95e7ca3ad1cf24cf66549cee9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-27 15:33:31 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-27 15:33:31 +0000

    science/py-h5py: Update to 3.15.1
    
    Changes:        https://github.com/h5py/h5py/releases
                    https://github.com/h5py/h5py/tree/master/docs/whatsnew
                    https://docs.h5py.org/en/stable/whatsnew/
---
 science/py-h5py/Makefile                   | 14 +++++++-------
 science/py-h5py/distinfo                   |  6 +++---
 science/py-h5py/files/patch-pyproject.toml | 28 +++++++++++++++++++---------
 science/py-h5py/pkg-plist                  |  3 +++
 4 files changed, 32 insertions(+), 19 deletions(-)

diff --git a/science/py-h5py/Makefile b/science/py-h5py/Makefile
index bd765b3986bd..64ce1e01a6f5 100644
--- a/science/py-h5py/Makefile
+++ b/science/py-h5py/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	h5py
-PORTVERSION=	3.13.0
+PORTVERSION=	3.15.1
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,17 +12,17 @@ WWW=		https://www.h5py.org/ \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/licenses/license.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pkgconfig>=0,1:devel/py-pkgconfig@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.25.0,1<3,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pkgconfig>=1.5.5,1:devel/py-pkgconfig@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 LIB_DEPENDS=	libhdf5.so:science/hdf5
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.19.3,1:math/py-numpy@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mpi4py>=3.1.1:net/py-mpi4py@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.21.2,1:math/py-numpy@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mpi4py>=3.1.2:net/py-mpi4py@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tables>=3.4.4:devel/py-tables@${PY_FLAVOR}
 
-USES=		localbase pkgconfig python:3.9+
-USE_PYTHON=	autoplist concurrent cython pep517 pytest
+USES=		localbase pkgconfig python
+USE_PYTHON=	autoplist concurrent cython3 pep517 pytest
 
 TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 TEST_WRKSRC=	${STAGEDIR}${PYTHON_SITELIBDIR}
diff --git a/science/py-h5py/distinfo b/science/py-h5py/distinfo
index 5f1c739655f7..2a710069543b 100644
--- a/science/py-h5py/distinfo
+++ b/science/py-h5py/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1739962484
-SHA256 (h5py-3.13.0.tar.gz) = 1870e46518720023da85d0895a1960ff2ce398c5671eac3b1a41ec696b7105c3
-SIZE (h5py-3.13.0.tar.gz) = 414876
+TIMESTAMP = 1761446742
+SHA256 (h5py-3.15.1.tar.gz) = c86e3ed45c4473564de55aa83b6fc9e5ead86578773dfbd93047380042e26b69
+SIZE (h5py-3.15.1.tar.gz) = 426236
diff --git a/science/py-h5py/files/patch-pyproject.toml b/science/py-h5py/files/patch-pyproject.toml
index 3651460fab6a..5ab8a3db7945 100644
--- a/science/py-h5py/files/patch-pyproject.toml
+++ b/science/py-h5py/files/patch-pyproject.toml
@@ -1,11 +1,21 @@
---- pyproject.toml.orig	2024-08-21 14:35:26 UTC
+--- pyproject.toml.orig	2025-10-13 12:03:55 UTC
 +++ pyproject.toml
-@@ -1,7 +1,7 @@ requires = [
- [build-system]
- requires = [
-     "Cython >=0.29.31,<4",
--    "numpy >=2.0.0, <3",
-+    "numpy",
-     "pkgconfig",
-     "setuptools >=61",
+@@ -5,7 +5,7 @@ requires = [
+     "Cython >=3.0.0, <4",
+     "numpy >=1.25.0, <3",
+     "pkgconfig >=1.5.5",
+-    "setuptools >=77.0.1",
++    "setuptools >=61",
  ]
+ # use an in-tree build backend, extending setuptools.build_meta
+ build-backend = "backend"
+@@ -22,8 +22,7 @@ maintainers = [
+     {name = "Thomas Kluyver", email = "thomas@kluyver.me.uk"},
+     {name = "Thomas A Caswell", email = "tcaswell@bnl.gov"},
+ ]
+-license = "BSD-3-Clause"
+-license-files = ["LICENSE", "lzf/LICENSE.txt", "licenses/*"]
++license = {text = "BSD-3-Clause"}
+ classifiers = [
+     "Development Status :: 5 - Production/Stable",
+     "Intended Audience :: Developers",
diff --git a/science/py-h5py/pkg-plist b/science/py-h5py/pkg-plist
index bd294d4fe60b..515203f360eb 100644
--- a/science/py-h5py/pkg-plist
+++ b/science/py-h5py/pkg-plist
@@ -22,6 +22,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/special.rst
 %%PORTDOCS%%%%DOCSDIR%%/strings.rst
 %%PORTDOCS%%%%DOCSDIR%%/swmr.rst
+%%PORTDOCS%%%%DOCSDIR%%/threads.rst
 %%PORTDOCS%%%%DOCSDIR%%/vds.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/2.0.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/2.1.rst
@@ -41,6 +42,8 @@
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.11.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.12.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.13.rst
+%%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.14.rst
+%%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.15.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.2.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.3.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.4.rst