commit:     aabb74b757d604aa524af81c800cb686260aa18c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 23 01:16:21 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 23 01:16:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=aabb74b7

python-utils-r1.eclass: sync with ::gentoo

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/python-utils-r1.eclass | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 5e035f86a9..9170229202 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -436,6 +436,12 @@ _python_export() {
                                case ${impl} in
                                        python2.7)
                                                
PYTHON_PKG_DEP='>=dev-lang/python-2.7.5-r2:2.7';;
+                                       python3.8)
+                                               
PYTHON_PKG_DEP=">=dev-lang/python-3.8.8_p1-r1:3.8";;
+                                       python3.9)
+                                               
PYTHON_PKG_DEP=">=dev-lang/python-3.9.6_p1-r1:3.9";;
+                                       python3.10)
+                                               
PYTHON_PKG_DEP=">=dev-lang/python-3.10.0_p1-r1:3.10";;
                                        python*)
                                                
PYTHON_PKG_DEP="dev-lang/python:${impl#python}";;
                                        pypy)
@@ -1273,7 +1279,8 @@ build_sphinx() {
        sed -i -e 's:^intersphinx_mapping:disabled_&:' \
                "${dir}"/conf.py || die
        # not all packages include the Makefile in pypi tarball
-       sphinx-build -b html -d "${dir}"/_build/doctrees "${dir}" \
+       "${EPYTHON}" -m sphinx.cmd.build \
+               -b html -d "${dir}"/_build/doctrees "${dir}" \
                "${dir}"/_build/html || die
 
        HTML_DOCS+=( "${dir}/_build/html/." )
@@ -1320,6 +1327,16 @@ epytest() {
 
        _python_check_EPYTHON
 
+       local color
+       case ${NOCOLOR} in
+               true|yes)
+                       color=no
+                       ;;
+               *)
+                       color=yes
+                       ;;
+       esac
+
        local args=(
                # verbose progress reporting and tracebacks
                -vv
@@ -1331,6 +1348,8 @@ epytest() {
                # override filterwarnings=error, we do not really want -Werror
                # for end users, as it tends to fail on new warnings from deps
                -Wdefault
+               # override color output
+               "--color=${color}"
        )
        local x
        for x in "${EPYTEST_DESELECT[@]}"; do

Reply via email to