commit: c52c80dbda6796c20475a04f9e5b35957e291e8d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 9 10:57:16 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Apr 15 14:19:39 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c52c80db
distutils-r1.eclass: Add verbose `det setup.py` deprecation warning
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index f863872330c2..7f5546a2c2a7 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -599,7 +599,7 @@ distutils_enable_sphinx() {
#
# - pytest: dev-python/pytest
#
-# - setup.py: setup.py test (no deps included)
+# - setup.py: setup.py test (no deps included; deprecated)
#
# - unittest: for built-in Python unittest module
#
@@ -645,6 +645,8 @@ distutils_enable_tests() {
fi
;;
setup.py)
+ eqawarn "'distutils_enable_tests setup.py' is
deprecated and will be removed."
+ eqawarn "Please use unittest or pytest instead."
;;
unittest)
;;