diff --git a/math/py-ml-dtypes/Makefile b/math/py-ml-dtypes/Makefile index 000fa69c248f..63b27391cb34 100644 --- a/math/py-ml-dtypes/Makefile +++ b/math/py-ml-dtypes/Makefile @@ -1,27 +1,27 @@ PORTNAME= ml-dtypes PORTVERSION= 0.5.1 PORTREVISION= 2 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ml_dtypes-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Stand-alone implementation of several NumPy dtype extensions WWW= https://github.com/jax-ml/ml_dtypes LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.26.0,1:math/py-numpy@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=2.0,1<3,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.26.0,1:math/py-numpy@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=2.1.0,1:math/py-numpy@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent pep517 post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/math/py-ml-dtypes/files/patch-pyproject.toml b/math/py-ml-dtypes/files/patch-pyproject.toml index 5ce41da69d71..23cd5429a7c2 100644 --- a/math/py-ml-dtypes/files/patch-pyproject.toml +++ b/math/py-ml-dtypes/files/patch-pyproject.toml @@ -1,26 +1,11 @@ --- pyproject.toml.orig 2025-01-07 02:25:37 UTC +++ pyproject.toml -@@ -17,11 +17,7 @@ dependencies = [ - # pip dependencies of the project - dependencies = [ - # Ensure numpy release supports Python version. -- "numpy>=1.21", -- "numpy>=1.21.2; python_version>='3.10'", -- "numpy>=1.23.3; python_version>='3.11'", -- "numpy>=1.26.0; python_version>='3.12'", -- "numpy>=2.1.0; python_version>='3.13'", -+ "numpy>=1.26.0", - ] - - [project.urls] -@@ -51,8 +47,8 @@ requires = [ - requires = [ +@@ -52,7 +52,7 @@ requires = [ # We build against the most recent supported NumPy 2.0 release; # see https://github.com/numpy/numpy/issues/27265 -- "numpy~=2.0", + "numpy~=2.0", - "setuptools~=75.7.0", -+ "numpy>=1.26.0", + "setuptools", ] build-backend = "setuptools.build_meta"