Move testing to MODPY_PYTEST.

Include patch for setup.cfg ( pytest -> tool:pytest )
This commit is contained in:
kmos 2019-11-25 21:53:58 +00:00
parent 2466ee2732
commit fd427df8a0
2 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2019/07/12 20:50:11 sthen Exp $
# $OpenBSD: Makefile,v 1.13 2019/11/25 21:53:58 kmos Exp $
COMMENT = parse CSS3 Selectors and translates them to XPath 1.0
@ -20,11 +20,9 @@ MODULES = lang/python
TEST_DEPENDS = textproc/py-lxml${MODPY_FLAVOR}
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
FLAVORS = python3
FLAVOR ?=
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -m unittest discover
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-setup_cfg,v 1.1 2019/11/25 21:53:58 kmos Exp $
Index: setup.cfg
--- setup.cfg.orig
+++ setup.cfg
@@ -6,7 +6,7 @@ build-dir = docs/_build
[upload_sphinx] # Sphinx-PyPI-upload
upload-dir = docs/_build/html
-[pytest]
+[tool:pytest]
testpaths = tests
[bdist_wheel]