1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

math/py-ml-dtypes: Add py-ml-dtypes 0.0.4

ml_dtypes is a stand-alone implementation of several NumPy dtype extensions used
in machine learning libraries.
This commit is contained in:
Po-Chuan Hsieh 2023-04-09 21:16:56 +08:00
parent 5f2b4ae458
commit 426ce4c9bc
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 61 additions and 0 deletions

View File

@ -954,6 +954,7 @@
SUBDIR += py-minorminer
SUBDIR += py-mip
SUBDIR += py-mixsimulator
SUBDIR += py-ml-dtypes
SUBDIR += py-moarchiving
SUBDIR += py-mpmath
SUBDIR += py-munkres

View File

@ -0,0 +1,27 @@
PORTNAME= ml-dtypes
PORTVERSION= 0.0.4
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.23.3:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pybind11>=2.10.0<2.11: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}
USES= python:3.7+
USE_PYTHON= autoplist concurrent pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1680726014
SHA256 (ml_dtypes-0.0.4.tar.gz) = 45623c738d477d7a0f3f8e4c94998dc49025202c520e62e27f0ef688db2f696f
SIZE (ml_dtypes-0.0.4.tar.gz) = 684934

View File

@ -0,0 +1,28 @@
--- pyproject.toml.orig 2023-03-27 19:04:56 UTC
+++ pyproject.toml
@@ -16,10 +16,7 @@ keywords = []
# pip dependencies of the project
dependencies = [
- # 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",
]
[project.urls]
@@ -45,11 +42,9 @@ pyink-use-majority-quotes = true
[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'",
+ "numpy>=1.23.3",
"pybind11~=2.10.0",
- "setuptools~=67.6.0",
+ "setuptools",
]
build-backend = "setuptools.build_meta"

View File

@ -0,0 +1,2 @@
ml_dtypes is a stand-alone implementation of several NumPy dtype extensions used
in machine learning libraries.