git: 11e1ae36e9e1 - main - math/py-ml-dtypes: Update to 0.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 22 Sep 2023 23:35:22 UTC
The branch main has been updated by sunpoet:

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

commit 11e1ae36e9e18dc1cae73d7729bf730dfcec0071
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-22 23:24:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-22 23:24:27 +0000

    math/py-ml-dtypes: Update to 0.3.0
    
    - Update version requirement of *_DEPENDS
    
    Changes:        https://github.com/jax-ml/ml_dtypes/releases
---
 math/py-ml-dtypes/Makefile                   |  9 ++++-----
 math/py-ml-dtypes/distinfo                   |  6 +++---
 math/py-ml-dtypes/files/patch-pyproject.toml | 25 ++++++++++++-------------
 3 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/math/py-ml-dtypes/Makefile b/math/py-ml-dtypes/Makefile
index 9de862f8b15f..00cab7182ed4 100644
--- a/math/py-ml-dtypes/Makefile
+++ b/math/py-ml-dtypes/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ml-dtypes
-PORTVERSION=	0.2.0
-PORTREVISION=	1
+PORTVERSION=	0.3.0
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,11 +12,11 @@ WWW=		https://github.com/jax-ml/ml_dtypes
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.23.3:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pybind11>=2.10.0:devel/py-pybind11@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.23.3,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pybind11>=2.11.1:devel/py-pybind11@${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:math/py-numpy@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.23.3,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 e3ff6564717e..ac87853d3d87 100644
--- a/math/py-ml-dtypes/distinfo
+++ b/math/py-ml-dtypes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1686496772
-SHA256 (ml_dtypes-0.2.0.tar.gz) = 6488eb642acaaf08d8020f6de0a38acee7ac324c1e6e92ee0c0fea42422cb797
-SIZE (ml_dtypes-0.2.0.tar.gz) = 698948
+TIMESTAMP = 1695357829
+SHA256 (ml_dtypes-0.3.0.tar.gz) = c4a7f2ea1d17f8a0caee4c99ccfb8814713ba620dea1cc8ab4f478df250dba25
+SIZE (ml_dtypes-0.3.0.tar.gz) = 691510
diff --git a/math/py-ml-dtypes/files/patch-pyproject.toml b/math/py-ml-dtypes/files/patch-pyproject.toml
index 169884de5f8c..575ca118bd9c 100644
--- a/math/py-ml-dtypes/files/patch-pyproject.toml
+++ b/math/py-ml-dtypes/files/patch-pyproject.toml
@@ -1,28 +1,27 @@
---- pyproject.toml.orig	2023-06-06 14:42:20 UTC
+--- pyproject.toml.orig	2023-09-19 22:47:59 UTC
 +++ pyproject.toml
-@@ -16,10 +16,7 @@ keywords = []
- 
+@@ -17,10 +17,7 @@ keywords = []
  # pip dependencies of the project
  dependencies = [
--    # Ensure numpy release supports Python version.
+     # Ensure numpy release supports Python version.
 -    "numpy>1.20",
 -    "numpy>=1.21.2; python_version>'3.9'",
 -    "numpy>=1.23.3; python_version>'3.10'",
-+    "numpy>=1.23.3",
+-    "numpy>=1.26.0; python_version>'3.12'",
++    "numpy>=1.21.2",
  ]
  
  [project.urls]
-@@ -47,11 +44,9 @@ pyink-use-majority-quotes = true
- 
+@@ -49,11 +46,9 @@ pyink-use-majority-quotes = true
  [build-system]
  requires = [
--    # Build with oldest supported numpy for each Python version.
+     # Build with oldest supported numpy for each Python version.
 -    "numpy~=1.21.2; python_version<'3.11'",
--    "numpy~=1.23.3; python_version>='3.11'",
--    "pybind11~=2.10.0",
--    "setuptools~=67.6.0",
-+    "numpy>=1.23.3",
-+    "pybind11>=2.10.0",
+-    "numpy~=1.23.3; python_version>='3.11' and python_version<'3.12'",
+-    "numpy~=1.26.0; python_version>='3.12'",
++    "numpy>=1.21.2",
+     "pybind11~=2.11.1",
+-    "setuptools~=68.1.0",
 +    "setuptools",
  ]
  build-backend = "setuptools.build_meta"