git: 995ffbbc1de5 - main - math/py-ml-dtypes: Update to 0.5.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 25 Sep 2024 04:26:08 UTC
The branch main has been updated by sunpoet:

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

commit 995ffbbc1de517fe1275f908a751e4a5c8971b21
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-25 04:14:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-25 04:22:35 +0000

    math/py-ml-dtypes: Update to 0.5.0
    
    Changes:        https://github.com/jax-ml/ml_dtypes/releases
---
 math/py-ml-dtypes/Makefile                   |  6 +++---
 math/py-ml-dtypes/distinfo                   |  6 +++---
 math/py-ml-dtypes/files/patch-pyproject.toml | 21 +++++++++++----------
 3 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/math/py-ml-dtypes/Makefile b/math/py-ml-dtypes/Makefile
index f40cdd6b2505..2dd446222028 100644
--- a/math/py-ml-dtypes/Makefile
+++ b/math/py-ml-dtypes/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ml-dtypes
-PORTVERSION=	0.4.0
+PORTVERSION=	0.5.0
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,10 @@ WWW=		https://github.com/jax-ml/ml_dtypes
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.23.3,1:math/py-numpy@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.26.0,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.23.3,1:math/py-numpy@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.26.0,1:math/py-numpy@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist concurrent pep517
diff --git a/math/py-ml-dtypes/distinfo b/math/py-ml-dtypes/distinfo
index ec17ab39e443..7998b654830a 100644
--- a/math/py-ml-dtypes/distinfo
+++ b/math/py-ml-dtypes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1712084526
-SHA256 (ml_dtypes-0.4.0.tar.gz) = eaf197e72f4f7176a19fe3cb8b61846b38c6757607e7bf9cd4b1d84cd3e74deb
-SIZE (ml_dtypes-0.4.0.tar.gz) = 692650
+TIMESTAMP = 1726740977
+SHA256 (ml_dtypes-0.5.0.tar.gz) = 3e7d3a380fe73a63c884f06136f8baa7a5249cc8e9fdec677997dd78549f8128
+SIZE (ml_dtypes-0.5.0.tar.gz) = 699367
diff --git a/math/py-ml-dtypes/files/patch-pyproject.toml b/math/py-ml-dtypes/files/patch-pyproject.toml
index 3989718a34fb..4d38c30d6240 100644
--- a/math/py-ml-dtypes/files/patch-pyproject.toml
+++ b/math/py-ml-dtypes/files/patch-pyproject.toml
@@ -1,24 +1,25 @@
---- pyproject.toml.orig	2024-04-01 15:41:58 UTC
+--- pyproject.toml.orig	2024-09-13 21:53:12 UTC
 +++ pyproject.toml
-@@ -17,10 +17,7 @@ dependencies = [
+@@ -17,11 +17,7 @@ dependencies = [
  # pip dependencies of the project
  dependencies = [
      # Ensure numpy release supports Python version.
--    "numpy>1.20",
+-    "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>=1.23.3",
+-    "numpy>=2.1.0; python_version>='3.13'",
++    "numpy>=1.26.0",
  ]
  
  [project.urls]
-@@ -49,8 +46,8 @@ requires = [
- [build-system]
+@@ -51,8 +47,8 @@ requires = [
  requires = [
-     # TODO(phawkins): update this to 2.0.0 after its release.
--    "numpy==2.0.0rc1",
--    "setuptools~=68.1.0",
-+    "numpy>=1.23.3",
+     # We build against the most recent supported NumPy 2.0 release;
+     # see https://github.com/numpy/numpy/issues/27265
+-    "numpy~=2.0",
+-    "setuptools~=73.0.1",
++    "numpy>=1.26.0",
 +    "setuptools",
  ]
  build-backend = "setuptools.build_meta"