git: 540636e549f1 - main - science/py-h5py: Update to 3.11.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 13 Apr 2024 09:32:39 UTC
The branch main has been updated by sunpoet:

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

commit 540636e549f1e423bdfb05dc128ff5a6ea96572d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-13 09:29:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-13 09:31:41 +0000

    science/py-h5py: Update to 3.11.0
    
    Changes:        https://github.com/h5py/h5py/releases
                    https://github.com/h5py/h5py/tree/master/docs/whatsnew
                    https://docs.h5py.org/en/stable/whatsnew/index.html
---
 science/py-h5py/Makefile                   | 6 ++----
 science/py-h5py/distinfo                   | 6 +++---
 science/py-h5py/files/patch-pyproject.toml | 9 +++++----
 science/py-h5py/pkg-plist                  | 1 +
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/science/py-h5py/Makefile b/science/py-h5py/Makefile
index d1f9b71e5541..44d248b12fc4 100644
--- a/science/py-h5py/Makefile
+++ b/science/py-h5py/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	h5py
-PORTVERSION=	3.10.0
-PORTREVISION=	1
+PORTVERSION=	3.11.0
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +12,7 @@ WWW=		https://www.h5py.org/ \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/licenses/license.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cython>=0.29.31<1:lang/cython@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pkgconfig>=0,1:devel/py-pkgconfig@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
diff --git a/science/py-h5py/distinfo b/science/py-h5py/distinfo
index 25b4451cf938..6011d3a72777 100644
--- a/science/py-h5py/distinfo
+++ b/science/py-h5py/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1696915330
-SHA256 (h5py-3.10.0.tar.gz) = d93adc48ceeb33347eb24a634fb787efc7ae4644e6ea4ba733d099605045c049
-SIZE (h5py-3.10.0.tar.gz) = 403716
+TIMESTAMP = 1712886452
+SHA256 (h5py-3.11.0.tar.gz) = 7b7e8f78072a2edec87c9836f25f34203fd492a4475709a18b417a33cfb21fa9
+SIZE (h5py-3.11.0.tar.gz) = 406519
diff --git a/science/py-h5py/files/patch-pyproject.toml b/science/py-h5py/files/patch-pyproject.toml
index 9568f19589d1..2558efdd5a4f 100644
--- a/science/py-h5py/files/patch-pyproject.toml
+++ b/science/py-h5py/files/patch-pyproject.toml
@@ -1,10 +1,11 @@
---- pyproject.toml.orig	2023-10-04 09:21:14 UTC
+--- pyproject.toml.orig	2024-04-05 09:38:21 UTC
 +++ pyproject.toml
-@@ -1,7 +1,7 @@ requires = [
+@@ -1,8 +1,7 @@ requires = [
  [build-system]
  requires = [
-     "Cython >=0.29.31,<1",
--    "oldest-supported-numpy",
+     "Cython >=0.29.31,<4",
+-    "oldest-supported-numpy; python_version=='3.8'",
+-    "numpy >=2.0.0rc1; python_version>='3.9'",
 +    "numpy",
      "pkgconfig",
      "setuptools >=61",
diff --git a/science/py-h5py/pkg-plist b/science/py-h5py/pkg-plist
index 28c2e2cfd840..8b443768439d 100644
--- a/science/py-h5py/pkg-plist
+++ b/science/py-h5py/pkg-plist
@@ -38,6 +38,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.0.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.1.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.10.rst
+%%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.11.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.2.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.3.rst
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew/3.4.rst