Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2024 15:01:44 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a80e0bc5d818 - main - science/py-h5py: Convert to USE_PYTHON=pep517
Message-ID:  <202403231501.42NF1ipf007876@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit a80e0bc5d818f5e02164b5fe6fa6bb0a64157858
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-23 14:22:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-23 14:49:30 +0000

    science/py-h5py: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 science/py-h5py/Makefile                   | 12 ++++++++++--
 science/py-h5py/files/patch-pyproject.toml | 11 +++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/science/py-h5py/Makefile b/science/py-h5py/Makefile
index 2cb5fdc6be85..d1f9b71e5541 100644
--- a/science/py-h5py/Makefile
+++ b/science/py-h5py/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	h5py
 PORTVERSION=	3.10.0
+PORTREVISION=	1
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,13 +14,20 @@ 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} \
 		${PYTHON_PKGNAMEPREFIX}pkgconfig>=0,1:devel/py-pkgconfig@${PY_FLAVOR} \
-		${RUN_DEPENDS}
+		${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.17.3,1:math/py-numpy@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mpi4py>=3.1.1:net/py-mpi4py@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tables>=3.4.4:devel/py-tables@${PY_FLAVOR}
 
 USES=		localbase pkgconfig python
-USE_PYTHON=	autoplist concurrent cython distutils pytest
+USE_PYTHON=	autoplist concurrent cython pep517 pytest
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
+TEST_WRKSRC=	${STAGEDIR}${PYTHON_SITELIBDIR}
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
diff --git a/science/py-h5py/files/patch-pyproject.toml b/science/py-h5py/files/patch-pyproject.toml
new file mode 100644
index 000000000000..9568f19589d1
--- /dev/null
+++ b/science/py-h5py/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2023-10-04 09:21:14 UTC
++++ pyproject.toml
+@@ -1,7 +1,7 @@ requires = [
+ [build-system]
+ requires = [
+     "Cython >=0.29.31,<1",
+-    "oldest-supported-numpy",
++    "numpy",
+     "pkgconfig",
+     "setuptools >=61",
+ ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403231501.42NF1ipf007876>