Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2026 20:41:24 +0000
From:      Charlie Li <vishwin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cefe7aed014c - main - devel/py-array-api-strict: add
Message-ID:  <69c2f6f4.19cf5.73ae833@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vishwin:

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

commit cefe7aed014c1276f3dd13c58e1a4ac27d72f5eb
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-03-24 20:40:54 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-03-24 20:40:54 +0000

    devel/py-array-api-strict: add
    
    To be used as TEST_DEPENDS
---
 devel/Makefile                      |  1 +
 devel/py-array-api-strict/Makefile  | 32 ++++++++++++++++++++++++++++++++
 devel/py-array-api-strict/distinfo  |  3 +++
 devel/py-array-api-strict/pkg-descr | 14 ++++++++++++++
 4 files changed, 50 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index a8c6815e7180..12d38dc7942c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4440,6 +4440,7 @@
     SUBDIR += py-ariadne
     SUBDIR += py-arpeggio
     SUBDIR += py-array-api-compat
+    SUBDIR += py-array-api-strict
     SUBDIR += py-arrow
     SUBDIR += py-asciimatics
     SUBDIR += py-asgi-lifespan
diff --git a/devel/py-array-api-strict/Makefile b/devel/py-array-api-strict/Makefile
new file mode 100644
index 000000000000..5d73fd280b72
--- /dev/null
+++ b/devel/py-array-api-strict/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	array-api-strict
+DISTVERSION=	2.5
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI \
+		https://github.com/data-apis/array-api-strict/releases/download/${DISTVERSION}/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:tl:C/[-_.]+/_/g}-${DISTVERSION}
+
+MAINTAINER=	vishwin@FreeBSD.org
+COMMENT=	Strict, minimal implementation of the Python array API
+WWW=		https://data-apis.org/array-api-strict/ \
+		https://github.com/data-apis/array-api-strict
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>8:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>0,1:math/py-numpy@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+NO_ARCH=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|setuptools >= 61.0,<=75|setuptools >= 61|' \
+		${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/devel/py-array-api-strict/distinfo b/devel/py-array-api-strict/distinfo
new file mode 100644
index 000000000000..0948ad7ab34e
--- /dev/null
+++ b/devel/py-array-api-strict/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1774327524
+SHA256 (array_api_strict-2.5.tar.gz) = 7767e597fa70c04c5db640114774d1a481c5f0a1a451a804ea1ccdd2a809e1c5
+SIZE (array_api_strict-2.5.tar.gz) = 87344
diff --git a/devel/py-array-api-strict/pkg-descr b/devel/py-array-api-strict/pkg-descr
new file mode 100644
index 000000000000..3cfcc73ec330
--- /dev/null
+++ b/devel/py-array-api-strict/pkg-descr
@@ -0,0 +1,14 @@
+array_api_strict is a strict, minimal implementation of the Python
+array API.
+
+The purpose of array-api-strict is to provide an implementation of
+the array API for consuming libraries to test against so they can
+be completely sure their usage of the array API is portable.
+
+It is not intended to be used by end-users. End-users of the array
+API should just use their favorite array library (NumPy, CuPy,
+PyTorch, etc.) as usual. It is also not intended to be used as a
+dependency by consuming libraries. Consuming library code should
+use the array-api-compat package to support the array API. Rather,
+it is intended to be used in the test suites of consuming libraries
+to test their array API usage.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c2f6f4.19cf5.73ae833>