Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2025 08:19:50 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9533423c2eb3 - main - devel/py-autoray: New port: Abstract your array operations
Message-ID:  <202510070819.5978JokV053190@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit 9533423c2eb38dc8355e8dfc6a5dc4d2727478e3
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-06 23:59:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-07 08:19:44 +0000

    devel/py-autoray: New port: Abstract your array operations
---
 devel/Makefile             |  1 +
 devel/py-autoray/Makefile  | 35 +++++++++++++++++++++++++++++++++++
 devel/py-autoray/distinfo  |  3 +++
 devel/py-autoray/pkg-descr | 12 ++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 89f97012289f..4b16bc90d244 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4463,6 +4463,7 @@
     SUBDIR += py-automaton
     SUBDIR += py-autopage
     SUBDIR += py-autoprop
+    SUBDIR += py-autoray
     SUBDIR += py-avocado-framework
     SUBDIR += py-avro
     SUBDIR += py-awesomeversion
diff --git a/devel/py-autoray/Makefile b/devel/py-autoray/Makefile
new file mode 100644
index 000000000000..1d2ffbccb937
--- /dev/null
+++ b/devel/py-autoray/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	autoray
+DISTVERSION=	0.8.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Abstract your array operations
+WWW=		https://autoray.readthedocs.io/en/latest/ \
+		https://github.com/jcmgray/autoray
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+# more backend dependencies are defined but not ported yet
+BE_DEPENDS=	${PYTHON_PKGNAMEPREFIX}autograd>0:math/py-autograd@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sparse>0:devel/py-sparse@${PY_FLAVOR}
+#BE_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tensorflow>0:science/py-tensorflow@${PY_FLAVOR} # tests crash with tensorflow
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${BE_DEPENDS}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist concurrent pytest
+
+NO_ARCH=	yes
+
+# tests as of : 1692 passed, 1274 skipped, 70 xfailed, 12 warnings in 49.94s
+
+.include <bsd.port.mk>
diff --git a/devel/py-autoray/distinfo b/devel/py-autoray/distinfo
new file mode 100644
index 000000000000..30556db9a415
--- /dev/null
+++ b/devel/py-autoray/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759782964
+SHA256 (autoray-0.8.0.tar.gz) = 5d0d71da03cb02d5bc590a1af64e0ba58589352d628843a0ecbcfe90040dc520
+SIZE (autoray-0.8.0.tar.gz) = 1215812
diff --git a/devel/py-autoray/pkg-descr b/devel/py-autoray/pkg-descr
new file mode 100644
index 000000000000..d83fab5b1ce3
--- /dev/null
+++ b/devel/py-autoray/pkg-descr
@@ -0,0 +1,12 @@
+Autoray is a lightweight Python library that provides automatic dispatching of
+array operations to the appropriate backend, allowing code to work seamlessly
+with different array libraries like NumPy, JAX, PyTorch, TensorFlow, CuPy,
+Dask, and others.
+
+Key features:
+* Automatic backend detection and dispatching
+* Support for multiple array libraries
+* Minimal overhead and dependencies
+* Easy integration with existing code
+* Extensible for custom backends
+* Compatible with most common array operations


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510070819.5978JokV053190>