Make tests work reliably. Add missing TEST_DEPENDS.
Remove test_virtualenv.py before tests since it requires unported modules
This commit is contained in:
parent
4e660d2f11
commit
6359f3314b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.38 2020/07/03 21:12:49 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.39 2020/10/17 23:27:03 kmos Exp $
|
||||
|
||||
COMMENT= simplified packaging system for Python modules
|
||||
|
||||
@ -22,13 +22,23 @@ MODULES= lang/python
|
||||
MODPY_PI= Yes
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_PYTEST= Yes
|
||||
MODPY_PYTEST_ARGS = setuptools/tests
|
||||
|
||||
SUBST_VARS+= MODPY_FLAVOR
|
||||
|
||||
FLAVORS= python3
|
||||
FLAVOR?=
|
||||
|
||||
# Not listed, but needed for tests
|
||||
TEST_DEPENDS= devel/py-mock${MODPY_FLAVOR} \
|
||||
devel/py-pip${MODPY_FLAVOR} \
|
||||
devel/py-wheel${MODPY_FLAVOR}
|
||||
|
||||
# Override automatic py-setuptools depend to avoid recursion
|
||||
MODPY_SETUPUTILS_DEPEND=
|
||||
|
||||
# test_virtualenv.py needs unported modules
|
||||
pre-test:
|
||||
rm -f ${WRKSRC}/setuptools/tests/test_virtualenv.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user