git: 5a42e24e21f9 - main - science/py-chempy: switch to USES=pytest, fix tests and document failing ones
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Apr 2022 17:28:17 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a42e24e21f9ca92e27f933e14ec7da0704d88f2 commit 5a42e24e21f9ca92e27f933e14ec7da0704d88f2 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2022-04-26 15:35:10 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2022-04-26 17:26:11 +0000 science/py-chempy: switch to USES=pytest, fix tests and document failing ones Reported by: reprise Approved by: portmgr blanket --- science/py-chempy/Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/science/py-chempy/Makefile b/science/py-chempy/Makefile index 622e88b9b0bf..553835f7fb1d 100644 --- a/science/py-chempy/Makefile +++ b/science/py-chempy/Makefile @@ -24,15 +24,22 @@ PY_DEPENDS= \ ${PYNUMPY} BUILD_DEPENDS= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-flakes>0:devel/py-pytest-flakes@${PY_FLAVOR} -USES= python:3.7+ +USES= python:3.7+ pytest USE_PYTHON= distutils autoplist NO_ARCH= yes +# https://github.com/bjodah/chempy/issues/198 +PYTEST_BROKEN_TESTS= test_get_native__a_substance_no_composition \ + test_balance_stoichiometry__underdetermined \ + test_balance_stoichiometry__very_underdetermined \ + test_balance_stoichiometry__underdetermined__canoncial \ + test_balance_stoichiometry__substances__underdetermined \ + test_balance_stoichiometry__duplicates + CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pymol # https://github.com/schrodinger/pymol-open-source/issues/100 OPTIONS_DEFINE= EXTRAS @@ -46,7 +53,4 @@ EXTRAS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>0:devel/py-appdirs@${PY_FLAVO ${PYTHON_PKGNAMEPREFIX}pygslodeiv2>=0.9.1:math/py-pygslodeiv2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyodeint>=0.10.1:math/py-pyodeint@${PY_FLAVOR} -do-test: # 7 tests are known to fail: https://github.com/bjodah/chempy/issues/198 - @cd ${WRKSRC} && pytest -rs --pyargs chempy - .include <bsd.port.mk>