Update tests, docs and infrastructure to explicitly support and test
Python3.15.
Signed-off-by: John Snow <jsnow@redhat.com>
---
configure | 2 +-
tests/docker/dockerfiles/python.docker | 5 ++---
python/Makefile | 4 ++--
python/setup.cfg | 3 ++-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/configure b/configure
index af14a9c23ef..745899b0e6d 100755
--- a/configure
+++ b/configure
@@ -497,7 +497,7 @@ first_python=
if test -z "${PYTHON}"; then
# A bare 'python' is traditionally python 2.x, but some distros
# have it as python 3.x, so check in both places.
- for binary in python3 python python3.14 python3.13 python3.12; do
+ for binary in python3 python python3.15 python3.14 python3.13 python3.12; do
if has "$binary"; then
python=$(command -v "$binary")
if check_py_version "$python"; then
diff --git a/tests/docker/dockerfiles/python.docker b/tests/docker/dockerfiles/python.docker
index 79c554a2d87..86b38ba55dd 100644
--- a/tests/docker/dockerfiles/python.docker
+++ b/tests/docker/dockerfiles/python.docker
@@ -11,11 +11,10 @@ ENV PACKAGES="\
python3-pip \
python3-tox \
python3-virtualenv \
- python3.10 \
- python3.11 \
python3.12 \
python3.13 \
- python3.9 \
+ python3.14 \
+ python3.15 \
"
RUN dnf install -y $PACKAGES
diff --git a/python/Makefile b/python/Makefile
index 7868a48a232..99066bfa3e0 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -15,8 +15,8 @@ help:
@echo "make check-tox:"
@echo " Run tests against multiple python versions."
@echo " These tests use the newest dependencies."
- @echo " Requires: Python 3.12 - 3.14, and tox."
- @echo " Hint (Fedora): 'sudo dnf install python3-tox python3.14'"
+ @echo " Requires: Python 3.12 - 3.15, and tox."
+ @echo " Hint (Fedora): 'sudo dnf install python3-tox python3.15'"
@echo " The variable QEMU_TOX_EXTRA_ARGS can be use to pass extra"
@echo " arguments to tox".
@echo ""
diff --git a/python/setup.cfg b/python/setup.cfg
index 927f72a46f6..d4130a2b27b 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14
+ Programming Language :: Python :: 3.15
Typing :: Typed
[options]
@@ -145,7 +146,7 @@ multi_line_output=3
# of python available on your system to run this test.
[tox:tox]
-envlist = py312, py313, py314
+envlist = py312, py313, py314, py315
skip_missing_interpreters = true
[testenv]
--
2.56.0