• [gentoo-dev] [PATCH 1/6] python-utils-r1.eclass: Add support for python

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sun May 8 20:30:01 2022
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/python-utils-r1.eclass | 10 ++++++----
    eclass/tests/python-utils-r1.sh | 14 ++++++++++++++
    2 files changed, 20 insertions(+), 4 deletions(-)

    diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 7b1bd012a37e..2b22b0539ecb 100644
    --- a/eclass/python-utils-r1.eclass
    +++ b/eclass/python-utils-r1.eclass
    @@ -43,7 +43,7 @@ inherit multiprocessing toolchain-funcs
    # All supported Python implementations, most preferred last.
    _PYTHON_ALL_IMPLS=(
    pypy3
    - python3_{8..10}
    + python3_{8..11}
    )
    readonly _PYTHON_ALL_IMPLS

    @@ -83,7 +83,7 @@ _python_verify_patterns() {
    local impl pattern
    for pattern; do
    case ${pattern} in
    - -[23]|3.[89]|3.10)
    + -[23]|3.[89]|3.1[01])
    continue
    ;;
    esac
    @@ -132,7 +132,7 @@ _python_set_impls() {
    # please keep them in sync with _PYTHON_ALL_IMPLS
    # and _PYTHON_HISTORICAL_IMPLS
    case ${i} in
    - pypy3|python2_7|python3_[89]|python3_10)
    + pypy3|python2_7|python3_[89]|python3_1[01])