Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2025 10:03:19 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: 47bdeebefa4f - main - =?utf-8?Q?misc/py-einops: update 0.8.0 =E2=86=92 0.8.1?=
Message-ID:  <202502091003.519A3JB0088147@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=47bdeebefa4f69470dda5e31986701b15cbcc6b9

commit 47bdeebefa4f69470dda5e31986701b15cbcc6b9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-02-09 10:00:36 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-02-09 10:03:10 +0000

    misc/py-einops: update 0.8.0 → 0.8.1
    
    Reported by:    portscout
---
 misc/py-einops/Makefile | 14 +++++++++++---
 misc/py-einops/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/misc/py-einops/Makefile b/misc/py-einops/Makefile
index a6ce6c65d9cc..ddd4df06dafe 100644
--- a/misc/py-einops/Makefile
+++ b/misc/py-einops/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	einops
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.8.0
+DISTVERSION=	0.8.1
 CATEGORIES=	misc # machine-learning
 #MASTER_SITES=	PYPI # some test files are missing in the PYPI tarball
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -18,7 +18,7 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nbconvert>0:devel/py-nbconvert@${PY_FLAVOR}
 		${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	pep517 autoplist pytest # 5 tests fail because of some pytorch issues, see https://github.com/arogozhnikov/einops/issues/313
+USE_PYTHON=	pep517 autoplist pytest
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	arogozhnikov
@@ -27,9 +27,17 @@ NO_ARCH=	yes
 
 BINARY_ALIAS=	python=${PYTHON_CMD}
 
-TEST_ENV=	${MAKE_ENV} EINOPS_TEST_BACKENDS="numpy,torch"
+TEST_ENV=	${MAKE_ENV} \
+		PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+		EINOPS_TEST_BACKENDS="numpy,torch"
+
+xdo-test:
+	@cd ${TEST_WRKSRC} && \
+		${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m einops.tests.run_tests numpy pytorch jax --pip-install
 
 do-test-via-script:
 	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test.py numpy pytorch
 
+# tests as of 0.8.1: 4 failed, 91 passed, 8 skipped, 9 warnings in 135.44s (0:02:15)
+
 .include <bsd.port.mk>
diff --git a/misc/py-einops/distinfo b/misc/py-einops/distinfo
index ebdda43b4f60..ed16f8d5a660 100644
--- a/misc/py-einops/distinfo
+++ b/misc/py-einops/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1714370387
-SHA256 (arogozhnikov-einops-v0.8.0_GH0.tar.gz) = 375c91d19ef91eb9456aef3bd536ffa0b3d3841081bf8f8011eaee00c2511bed
-SIZE (arogozhnikov-einops-v0.8.0_GH0.tar.gz) = 383693
+TIMESTAMP = 1739081761
+SHA256 (arogozhnikov-einops-v0.8.1_GH0.tar.gz) = a5e295fb634a999782e147f1c0b394fc566c514acfa653ec37c3bfbe685df7e5
+SIZE (arogozhnikov-einops-v0.8.1_GH0.tar.gz) = 407074



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