public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/3] distutils-r1: distutils_enable_tests, add 'setup.py' option
@ 2019-11-15 16:35 Michał Górny
  2019-11-15 16:35 ` [gentoo-dev] [PATCH 2/3] distutils-r1.eclass: distutils_enable_tests, handle no deps better Michał Górny
  2019-11-15 16:35 ` [gentoo-dev] [PATCH 3/3] distutils-r1.eclass: Add tests for distutils_enable_tests Michał Górny
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2019-11-15 16:35 UTC (permalink / raw
  To: gentoo-dev; +Cc: python, Michał Górny

Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
 eclass/distutils-r1.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 2edffdb2d7c5..99da6f5111cd 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
@@ -273,6 +274,11 @@ distutils_enable_tests() {
 				pytest -vv || die "Tests fail with ${EPYTHON}"
 			}
 			;;
+		setup.py)
+			python_test() {
+				esetup.py test
+			}
+			;;
 		unittest)
 			python_test() {
 				"${EPYTHON}" -m unittest discover -v ||
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-16 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-15 16:35 [gentoo-dev] [PATCH 1/3] distutils-r1: distutils_enable_tests, add 'setup.py' option Michał Górny
2019-11-15 16:35 ` [gentoo-dev] [PATCH 2/3] distutils-r1.eclass: distutils_enable_tests, handle no deps better Michał Górny
2019-11-16 11:03   ` Michał Górny
2019-11-15 16:35 ` [gentoo-dev] [PATCH 3/3] distutils-r1.eclass: Add tests for distutils_enable_tests Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox