git: 3808599ffb89 - main - misc/py-einops: Improve how tests are run
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jul 2023 08:12:21 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=3808599ffb89258b53466796416133106e56748d commit 3808599ffb89258b53466796416133106e56748d Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-07-11 08:11:33 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-07-11 08:12:19 +0000 misc/py-einops: Improve how tests are run The backends variable is required, and is set now. --- misc/py-einops/Makefile | 18 +++++++++++++++--- misc/py-einops/distinfo | 6 +++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/misc/py-einops/Makefile b/misc/py-einops/Makefile index de10b79fd251..7f5bedd89d09 100644 --- a/misc/py-einops/Makefile +++ b/misc/py-einops/Makefile @@ -1,7 +1,8 @@ PORTNAME= einops +DISTVERSIONPREFIX= v DISTVERSION= 0.6.1 CATEGORIES= misc # machine-learning -MASTER_SITES= PYPI +#MASTER_SITES= PYPI # some test files are missing in the PYPI tarball PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org @@ -13,11 +14,22 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.10.0:devel/py-hatchling@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nbconvert>0:devel/py-nbconvert@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} USES= python -USE_PYTHON= pep517 autoplist pytest # 1 test fails because of missing pytorch +USE_PYTHON= pep517 autoplist pytest # 1 test fails because of some pytorch issues, see https://github.com/arogozhnikov/einops/issues/269 + +USE_GITHUB= yes +GH_ACCOUNT= arogozhnikov NO_ARCH= yes +BINARY_ALIAS= python=${PYTHON_CMD} + +TEST_ENV= ${MAKE_ENV} EINOPS_TEST_BACKENDS="numpy,torch" + +do-test-via-script: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test.py numpy pytorch + .include <bsd.port.mk> diff --git a/misc/py-einops/distinfo b/misc/py-einops/distinfo index 823c2915f4de..f569af104352 100644 --- a/misc/py-einops/distinfo +++ b/misc/py-einops/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1687408166 -SHA256 (einops-0.6.1.tar.gz) = f95f8d00f4ded90dbc4b19b6f98b177332614b0357dde66997f3ae5d474dc8c8 -SIZE (einops-0.6.1.tar.gz) = 55848 +TIMESTAMP = 1689062241 +SHA256 (arogozhnikov-einops-v0.6.1_GH0.tar.gz) = 693b2ccf131b4959b8f1487f4aef653e2fb7a00056a85137559aa2f2e02effd0 +SIZE (arogozhnikov-einops-v0.6.1_GH0.tar.gz) = 380481