eclass/python-utils-r1: Sync with Gentoo

It's from Gentoo commit 94e8e20b0fcbb930494c218faca39e84c6035bd6.
This commit is contained in:
Flatcar Buildbot 2024-01-01 07:13:37 +00:00 committed by Krzesimir Nowak
parent 750205c86f
commit 345c6b2b31

View File

@ -153,17 +153,6 @@ _python_set_impls() {
done done
fi fi
if [[ -n ${obsolete[@]} && ${EBUILD_PHASE} == setup ]]; then
# complain if people don't clean up old impls while touching
# the ebuilds recently. use the copyright year to infer last
# modification
# NB: this check doesn't have to work reliably
if [[ $(head -n 1 "${EBUILD}" 2>/dev/null) == *2022* ]]; then
eqawarn "Please clean PYTHON_COMPAT of obsolete implementations:"
eqawarn " ${obsolete[*]}"
fi
fi
local supp=() unsupp=() local supp=() unsupp=()
for i in "${_PYTHON_ALL_IMPLS[@]}"; do for i in "${_PYTHON_ALL_IMPLS[@]}"; do
@ -1336,15 +1325,8 @@ epytest() {
_python_check_EPYTHON _python_check_EPYTHON
_python_check_occluded_packages _python_check_occluded_packages
local color local color=yes
case ${NOCOLOR} in [[ ${NO_COLOR} ]] && color=no
true|yes)
color=no
;;
*)
color=yes
;;
esac
local args=( local args=(
# verbose progress reporting and tracebacks # verbose progress reporting and tracebacks
@ -1389,6 +1371,8 @@ epytest() {
-p no:pytest-describe -p no:pytest-describe
-p no:plus -p no:plus
-p no:tavern -p no:tavern
# does something to logging
-p no:salt-factories
) )
fi fi