Move testing to MODPY_PYTEST.
Include patch for setup.cfg ( pytest -> tool:pytest )
This commit is contained in:
parent
2466ee2732
commit
fd427df8a0
@ -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>
|
||||
|
14
textproc/py-cssselect/patches/patch-setup_cfg
Normal file
14
textproc/py-cssselect/patches/patch-setup_cfg
Normal 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]
|
Loading…
x
Reference in New Issue
Block a user