From nobody Tue Apr 26 13:49:15 2022 X-Original-To: dev-commits-ports-all@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 A9B921AB28EF; Tue, 26 Apr 2022 13:49:18 +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 4Knjsm4yVRz3CFL; Tue, 26 Apr 2022 13:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650980957; 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=rVI/wLv0qFb5s04BLffNg4Ce3UHS/uj5uuxjGK6Pm8M=; b=Flyb8uFpMuMHIRKEjzKPVJENeovc9VL5hZh+VBocbF/0VjfnTfQ4yqY7aZKbrKSKwLFxW5 /b+ZR5UEIpM806qzhN6XA4wXYWDAvVXrfS5kIRLL1GN/hSrm5L/GEW/RAqa7n3ThJZLKgL oce+ztfvLjgUdzYKroN/ID3c0k9vIa99eMSzXdRGjHjJgzL/wCZcaRpsm+PHczXxQ7/n74 7zmZXm35dBvYRAap7Np1Wjnsrg3VQkMpTCyaqLJYrMDhBtxUyO0v7ezFx3DTOWr5j5kLBh HIROp8X3VR+B7eJf+JOa5lpPrTcVAyGjM+ydGa+z3v44H5Vo3TEP1yJ4yUUGRg== 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 467441060A; Tue, 26 Apr 2022 13:49:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23QDnFFF027528; Tue, 26 Apr 2022 13:49:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23QDnFdW027527; Tue, 26 Apr 2022 13:49:15 GMT (envelope-from git) Date: Tue, 26 Apr 2022 13:49:15 GMT Message-Id: <202204261349.23QDnFdW027527@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: e2d0db77c456 - main - science/py-pymatgen: switch to USES=pytest and partially fix tests List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e2d0db77c456768daab0dfbda11a58852950f614 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650980957; 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=rVI/wLv0qFb5s04BLffNg4Ce3UHS/uj5uuxjGK6Pm8M=; b=b1oTYtxT8nDdT/2PHGAqLaWi2WhhfQThzp6G/qSFLOSid/CpP3KAHfxth+b6BtJlZ/iDyY WbDxicg+t2XuHRsJMQOxZqKjOsZoCP9PXbaOBFhrCAGCsvqk1i/Q9PV06SHRf4NUpifZCx /nkalEM7gWaYyJUALzrU2ZS1ZlpSYjIH5Q7E+w9YnGd4/NrmqIR8eUAgehpvF8091B08SD tFH1eBqND876V9HfWjehbUaqI//V6fK7+xWq6cLHLr99q6ihX0gXy0buPdVhEfTMMGPer5 hDEcWHBoQbUAnOnG7q7lzJCCg4H6aMY9ZJfDg26bksJhM8rmVDkvtXy2UfHFMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650980957; a=rsa-sha256; cv=none; b=MS8bv+8si9QoDTjFI3ilUIr3QDbD/rRJ0tD/y6Ff7gfQBxexSFN3JBN5+qqCMM/xJZq3U/ rdqBP0Wj/3+43V1VWxjCqOvbJzlWeOomlImXOgjgEBCrCurWkiujiTriznutAJndysxhxs XuclXnSCSw6VDCZooIvycuSfgJwM6to59vEVaIKqxr38PRIM12oeECnNzY1wsWo5BAlePW AD82pYNwf/pQnxVz/GIh/huNr2vVpQl95vifeynwHhmZCz5/6vceSAzuSzXdSlWMnk5XUl HgTGS2YZu9bQM/EV+uzuStg/i19Kp5OAGjwo3ZFTWzBZ/tdkshhdBn/2TM/yPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=e2d0db77c456768daab0dfbda11a58852950f614 commit e2d0db77c456768daab0dfbda11a58852950f614 Author: Dmitry Marakasov AuthorDate: 2022-04-26 12:56:57 +0000 Commit: Dmitry Marakasov CommitDate: 2022-04-26 13:48:41 +0000 science/py-pymatgen: switch to USES=pytest and partially fix tests - Set up testing properly so it no longer fails on loading own C extensions - Add missing test-depend The tests however still fail being unable to find data files missing from the distribution Reported by: reprise Approved by: portmgr blanket --- science/py-pymatgen/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/science/py-pymatgen/Makefile b/science/py-pymatgen/Makefile index 8c7b01806e0c..80d6feb651ba 100644 --- a/science/py-pymatgen/Makefile +++ b/science/py-pymatgen/Makefile @@ -28,9 +28,9 @@ RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}uncertainties>=3.1.4:math/py-uncertainties@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybtex>0:textproc/py-pybtex@${PY_FLAVOR} -USES= compiler:c++11-lang python:3.7+ +USES= compiler:c++11-lang python:3.7+ pytest USE_PYTHON= distutils cython concurrent autoplist post-install: @@ -39,7 +39,8 @@ post-install: optimization/neighbors*.so \ util/coord_cython*.so -do-test: # tests fail: https://github.com/materialsproject/pymatgen/issues/2275 - @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest +# tests fail: https://github.com/materialsproject/pymatgen/issues/2275 +pre-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} build_ext --inplace .include