From nobody Tue Jul 11 08:12:21 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R0YWT3nJ2z4gydF; Tue, 11 Jul 2023 08:12:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R0YWT3Kgvz4ktH; Tue, 11 Jul 2023 08:12:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689063141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7pUBRy99LfaeQacnEf31a7PNJaIuFsSbIoo7NXFI9EA=; b=ei5L5lSR2jZDICSPtKySp4ryrX3k5YDdEvXTXL0x4xEclin8dXAUiJkOtR6jNEl7Yu52xS KPhukMcHOlH41PdtF+1MWFMJdAa/xL0V8ZG6wKsr/QAdQX0B8/gNId4SeBoJJuYhSYSxII 6HAI/PrnkUBy9GDBVsQpB463GBkFqjqsdfbC5zT2YxcK54byV8N9AQ+L/vgisU/KgmdrOq Teodz5+vCRf4nk5aM9ptaNpk117U87e7Jh/J43CTtHe4TtrBiyPoYLYpvVXE+r1TDenaXA NuKBcSJB7WTqIFe2iaBqEQUjxQs4OyRvi/nGAuO7esq5Fslamtd0f+P1HPoMUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689063141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7pUBRy99LfaeQacnEf31a7PNJaIuFsSbIoo7NXFI9EA=; b=QYhgmvkyc72bcjCUbcAXvtqIiCA5sNzSKN2uqsxuYuHbYhOAGjbWk0Gdv2/Nxvdm/FdhgO eY/oaX9C7Xk+0Nwxpiq+BJ74AYFTnud2FPF1BVNyrFOiW6b8+13j2mKN0ZX99v18lvkL8X IjOtWu6HwgWF4n7FvVOLH/VWSRGnr5Ik+p3xytwewO7ogdHneLbsYOlrf7QztnzDkJELhr q9JYLQH3sz0v2Sybg2tfm8q4MuyRKkp2o9JbbwFn9Lrqh5YNcChXreiknB0xxCgHmC+ECS M2KTNO4drgsMMoQZpYW/wfBwHO9Grl9PgAkhekO84g0KxFjbblwp5gylBngVgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689063141; a=rsa-sha256; cv=none; b=kpZJ4UQYgyyyQ/wbqS4GVIKFvuz49iSTMgfc4izV28J1yhSEGRUWAFd7VgVdt7YmHZnFoz OceumbRZjnfknWBbvzeznzexC0+6tjhfcsJROvu+0lCN/DxNWQymvzf4vkFSPSZavU28wT mz5GGHuLJ9agkZ/jaR+SYB+XAC5OSuS9AyiBinjZEcn2G9me+5PA2yJFup08Tmr9I/5mK2 A1xvx9J15MbpYMPdna4FYBteofM18YBRRZ+fXvqvIpHS0LkhE2TSIko/D/X3YdtlRM3gXo ACAZfhkPHO1sxyE09adkJeuxx9IivH3fLGOJpvABP4983CS6usbavXASJD+uVw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R0YWT28PLzJSc; Tue, 11 Jul 2023 08:12:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36B8CLrL026275; Tue, 11 Jul 2023 08:12:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36B8CLBC026274; Tue, 11 Jul 2023 08:12:21 GMT (envelope-from git) Date: Tue, 11 Jul 2023 08:12:21 GMT Message-Id: <202307110812.36B8CLBC026274@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 3808599ffb89 - main - misc/py-einops: Improve how tests are run List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3808599ffb89258b53466796416133106e56748d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=3808599ffb89258b53466796416133106e56748d commit 3808599ffb89258b53466796416133106e56748d Author: Yuri Victorovich AuthorDate: 2023-07-11 08:11:33 +0000 Commit: Yuri Victorovich 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 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