From 5ebb3306c0722e17d2b3e864f7843bf30780bb27 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Wed, 18 Feb 2026 10:21:47 +0100 Subject: [PATCH 1/2] Execute proper python interpreter In case python interpreter is less then 3.13 then use python3.12. Otherwise use python3 Fixes: #784 Closes: #784 Signed-off-by: Petr "Stone" Hracek --- test/run-pytest | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/run-pytest b/test/run-pytest index e69959ad..9810fe89 100755 --- a/test/run-pytest +++ b/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py From 98d9853d8b2b91b47d711e0826490fdeb6236867 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Wed, 18 Feb 2026 10:24:04 +0100 Subject: [PATCH 2/2] Add distgen generated sources Signed-off-by: Petr "Stone" Hracek --- 3.11-minimal/test/run-pytest | 7 ++++--- 3.11/test/run-pytest | 7 ++++--- 3.12-minimal/test/run-pytest | 7 ++++--- 3.12/test/run-pytest | 7 ++++--- 3.13-minimal/test/run-pytest | 7 ++++--- 3.13/test/run-pytest | 7 ++++--- 3.6/test/run-pytest | 7 ++++--- 3.9-minimal/test/run-pytest | 7 ++++--- 3.9/test/run-pytest | 7 ++++--- 9 files changed, 36 insertions(+), 27 deletions(-) diff --git a/3.11-minimal/test/run-pytest b/3.11-minimal/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.11-minimal/test/run-pytest +++ b/3.11-minimal/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.11/test/run-pytest b/3.11/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.11/test/run-pytest +++ b/3.11/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.12-minimal/test/run-pytest b/3.12-minimal/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.12-minimal/test/run-pytest +++ b/3.12-minimal/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.12/test/run-pytest b/3.12/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.12/test/run-pytest +++ b/3.12/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.13-minimal/test/run-pytest b/3.13-minimal/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.13-minimal/test/run-pytest +++ b/3.13-minimal/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.13/test/run-pytest b/3.13/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.13/test/run-pytest +++ b/3.13/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.6/test/run-pytest b/3.6/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.6/test/run-pytest +++ b/3.6/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.9-minimal/test/run-pytest b/3.9-minimal/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.9-minimal/test/run-pytest +++ b/3.9-minimal/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py diff --git a/3.9/test/run-pytest b/3.9/test/run-pytest index e69959ad..9810fe89 100755 --- a/3.9/test/run-pytest +++ b/3.9/test/run-pytest @@ -8,8 +8,9 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) -PYTHON_VERSION="3.12" -if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then - PYTHON_VERSION="3.13" +if python3 -c 'import sys; sys.exit(0 if sys.version_info < (3,13) else 1)'; then + PYTHON_VERSION="3.12" +else + PYTHON_VERSION="3" fi cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py