Skip to content

Commit

Permalink
science/py-h5py: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Mar 23, 2024
1 parent 0b57484 commit a80e0bc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 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}
Expand All @@ -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

Expand Down
11 changes: 11 additions & 0 deletions 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",
]

0 comments on commit a80e0bc

Please sign in to comment.