summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-10-06 16:59:38 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2025-10-07 01:19:44 -0700
commit9533423c2eb38dc8355e8dfc6a5dc4d2727478e3 (patch)
tree52596b50a380cd864c330aba2faf247167772791
parentdevel/py-atom: New port: Memory efficient Python objects (diff)
devel/py-autoray: New port: Abstract your array operations
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-autoray/Makefile35
-rw-r--r--devel/py-autoray/distinfo3
-rw-r--r--devel/py-autoray/pkg-descr12
4 files changed, 51 insertions, 0 deletions
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