From: Michał Górny Date: Fri, 15 Nov 2019 16:14:11 +0000 (+0100) Subject: distutils-r1.eclass: distutils_enable_tests, add 'setup.py' option X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2072f61da934b050d8858b30017206a7a464e28;p=gentoo.git distutils-r1.eclass: distutils_enable_tests, add 'setup.py' option Signed-off-by: Michał Górny --- diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index e2cd076d4148..63e77bf014c1 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -241,6 +241,7 @@ fi # # - nose: nosetests (dev-python/nose) # - pytest: dev-python/pytest +# - setup.py: setup.py test (no deps included) # - unittest: for built-in Python unittest module # # This function is meant as a helper for common use cases, and it only @@ -268,6 +269,11 @@ distutils_enable_tests() { pytest -vv || die "Tests fail with ${EPYTHON}" } ;; + setup.py) + python_test() { + esetup.py test --verbose + } + ;; unittest) python_test() { "${EPYTHON}" -m unittest discover -v ||