diff options
Diffstat (limited to 'devel/py-autoray')
-rw-r--r-- | devel/py-autoray/Makefile | 35 | ||||
-rw-r--r-- | devel/py-autoray/distinfo | 3 | ||||
-rw-r--r-- | devel/py-autoray/pkg-descr | 12 |
3 files changed, 50 insertions, 0 deletions
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 |