summaryrefslogtreecommitdiff
path: root/devel/py-autoray/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-autoray/Makefile')
-rw-r--r--devel/py-autoray/Makefile35
1 files changed, 35 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>