From nobody Sun Apr 9 13:39:11 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PvY9X5MlLz44Rct; Sun, 9 Apr 2023 13:39:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PvY9X3DSFz4G0Q; Sun, 9 Apr 2023 13:39:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681047552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+QzBIuxjBbAth341WhTI2wKvMSNccSH3knitF13U22k=; b=YczLI/naUyxpWx6hqO4hZwsZumI7OvX2DtVR8Z7VijeqxvGv9M8fmoAZz2WI+36k0CC6wu TU6kiYD8gu9a4r5AX2uK+VOegXUW/D/ssPs4Ffhu3LKG2MUvygk94r21CYcSYi/4A2P7vh qjypZ0KyP5isW7UyUDhchUK/35TjclWExVVVg/NQgza5Q9EHY2e7ozvIpScDmW5L2rbI2d YK2KImXwf49pO83a4YZ9wsxwpkKz5gOQSZtEzyb3LtYollVYCD8wNHsZzB4Bi12Dn3SuXS Nlz+9Lnh/s2PWIJdxQzXhPYHbk6CxrLyUpe+qEPV3CG7x66D2DRGkMPkaGiyPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681047552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+QzBIuxjBbAth341WhTI2wKvMSNccSH3knitF13U22k=; b=mHKr6TvY5cik0TkSmfZjS+FEdS7bofUBYMXbMiOwd1Lpi8G2Om7+TR3E+TZRba1P6Sc8kn R9TqUlbg6epZ8//+y/0S37hOq4W/Cs7El3uCFPkObRl1GU27Zzl+/Zl4Qu7HUZUFHAjr4Z ilMWZeaO2D31FaB1Q5UOQ8Ea68VdEmK4fyLG+n4q6s3l1Uo5iZOfEasSi/Cgrl4HmH0rT9 guUYCbV26Fvnc5GwIDRFqUaRPD811e3YXnLP7HDFdV7+llQe9hRtFQ30TkuFDDSxTVY3+W SLEk3G53Vtz7eLZagN4IHFYuHd1ouXmGiGZaBWQYixbwlVw+Co8vOLSaOWgZTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681047552; a=rsa-sha256; cv=none; b=ynprSt5qgnGZeL3PPQBwZwO9ig57divWr2ybsB+VRDNXzMVXLFyhU89Occhqe8uh3l5kdM vhv0rKmzQJCD6L5Cr6mGu8nS/uuu1Zhn7XniPfS2FuhwWplVu7Jpc3Neckh76GEoA+CPkJ EbBtmnIMxiDssvWYD+dCFutleR2SNfAftWsgq3QWmhFIzbNOOEiXRYQXALzfBYdBee069r D6QJqGeGQrNuukjHukMUQytaC3lgPke6syKPudiSFL+t4UUT5/UbBMDhdwqAMT5kHLNItW RoAPOBfmcmWmQ3uZXg6Heg9JZDukkGmS0uiGabjNmn5RdjMCS8iJLn22leRQBg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PvY9X0JCSz19HH; Sun, 9 Apr 2023 13:39:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 339DdBtB080461; Sun, 9 Apr 2023 13:39:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339DdBXr080460; Sun, 9 Apr 2023 13:39:11 GMT (envelope-from git) Date: Sun, 9 Apr 2023 13:39:11 GMT Message-Id: <202304091339.339DdBXr080460@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 426ce4c9bcfd - main - math/py-ml-dtypes: Add py-ml-dtypes 0.0.4 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 426ce4c9bcfd7f79da48faf3270c21562650ee0a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=426ce4c9bcfd7f79da48faf3270c21562650ee0a commit 426ce4c9bcfd7f79da48faf3270c21562650ee0a Author: Po-Chuan Hsieh AuthorDate: 2023-04-09 13:16:56 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-04-09 13:36:26 +0000 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. --- math/Makefile | 1 + math/py-ml-dtypes/Makefile | 27 +++++++++++++++++++++++++++ math/py-ml-dtypes/distinfo | 3 +++ math/py-ml-dtypes/files/patch-pyproject.toml | 28 ++++++++++++++++++++++++++++ math/py-ml-dtypes/pkg-descr | 2 ++ 5 files changed, 61 insertions(+) diff --git a/math/Makefile b/math/Makefile index d588a2ab3500..988e051ba799 100644 --- a/math/Makefile +++ b/math/Makefile @@ -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 diff --git a/math/py-ml-dtypes/Makefile b/math/py-ml-dtypes/Makefile new file mode 100644 index 000000000000..131df85dc85d --- /dev/null +++ b/math/py-ml-dtypes/Makefile @@ -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 diff --git a/math/py-ml-dtypes/distinfo b/math/py-ml-dtypes/distinfo new file mode 100644 index 000000000000..881a0b72d2cd --- /dev/null +++ b/math/py-ml-dtypes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1680726014 +SHA256 (ml_dtypes-0.0.4.tar.gz) = 45623c738d477d7a0f3f8e4c94998dc49025202c520e62e27f0ef688db2f696f +SIZE (ml_dtypes-0.0.4.tar.gz) = 684934 diff --git a/math/py-ml-dtypes/files/patch-pyproject.toml b/math/py-ml-dtypes/files/patch-pyproject.toml new file mode 100644 index 000000000000..645226e9988e --- /dev/null +++ b/math/py-ml-dtypes/files/patch-pyproject.toml @@ -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" + diff --git a/math/py-ml-dtypes/pkg-descr b/math/py-ml-dtypes/pkg-descr new file mode 100644 index 000000000000..7c825172d102 --- /dev/null +++ b/math/py-ml-dtypes/pkg-descr @@ -0,0 +1,2 @@ +ml_dtypes is a stand-alone implementation of several NumPy dtype extensions used +in machine learning libraries.