Skip to content

Commit

Permalink
science/py-chempy: switch to USES=pytest, fix tests and document fail…
Browse files Browse the repository at this point in the history
…ing ones

Reported by:	reprise
Approved by:	portmgr blanket
  • Loading branch information
AMDmi3 committed Apr 26, 2022
1 parent bfd17f6 commit 5a42e24
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions science/py-chempy/Makefile
Expand Up @@ -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
Expand All @@ -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 comments on commit 5a42e24

Please sign in to comment.