Skip to content
Snippets Groups Projects
Commit 5a42e24e authored by Dmitry Marakasov's avatar Dmitry Marakasov
Browse files

science/py-chempy: switch to USES=pytest, fix tests and document failing ones

Reported by:	reprise
Approved by:	portmgr blanket
parent bfd17f68
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment