git: 84044de847f6 - main - math/py-ml-dtypes: Update to 0.4.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 05 Apr 2024 00:45:20 UTC
The branch main has been updated by sunpoet:

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

commit 84044de847f6e384039fb2b7a03c6e27a0950877
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-05 00:40:37 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-05 00:40:37 +0000

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

diff --git a/math/py-ml-dtypes/Makefile b/math/py-ml-dtypes/Makefile
index 9212e96fe3cc..f40cdd6b2505 100644
--- a/math/py-ml-dtypes/Makefile
+++ b/math/py-ml-dtypes/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ml-dtypes
-PORTVERSION=	0.3.2
+PORTVERSION=	0.4.0
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/math/py-ml-dtypes/distinfo b/math/py-ml-dtypes/distinfo
index 76362a0cbeaf..ec17ab39e443 100644
--- a/math/py-ml-dtypes/distinfo
+++ b/math/py-ml-dtypes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708449396
-SHA256 (ml_dtypes-0.3.2.tar.gz) = 533059bc5f1764fac071ef54598db358c167c51a718f68f5bb55e3dee79d2967
-SIZE (ml_dtypes-0.3.2.tar.gz) = 692014
+TIMESTAMP = 1712084526
+SHA256 (ml_dtypes-0.4.0.tar.gz) = eaf197e72f4f7176a19fe3cb8b61846b38c6757607e7bf9cd4b1d84cd3e74deb
+SIZE (ml_dtypes-0.4.0.tar.gz) = 692650
diff --git a/math/py-ml-dtypes/files/patch-pyproject.toml b/math/py-ml-dtypes/files/patch-pyproject.toml
index 8bf02a6a2096..3989718a34fb 100644
--- a/math/py-ml-dtypes/files/patch-pyproject.toml
+++ b/math/py-ml-dtypes/files/patch-pyproject.toml
@@ -1,4 +1,4 @@
---- pyproject.toml.orig	2024-01-03 18:51:44 UTC
+--- pyproject.toml.orig	2024-04-01 15:41:58 UTC
 +++ pyproject.toml
 @@ -17,10 +17,7 @@ dependencies = [
  # pip dependencies of the project
@@ -12,13 +12,11 @@
  ]
  
  [project.urls]
-@@ -49,10 +46,8 @@ requires = [
+@@ -49,8 +46,8 @@ requires = [
  [build-system]
  requires = [
-     # 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' and python_version<'3.12'",
--    "numpy~=1.26.0; python_version>='3.12'",
+     # TODO(phawkins): update this to 2.0.0 after its release.
+-    "numpy==2.0.0rc1",
 -    "setuptools~=68.1.0",
 +    "numpy>=1.23.3",
 +    "setuptools",