Skip to contentSkip to conversation

Python: add support for Python3.15

PATCH In review John Snow 3 participants 3 messages Nov 9 – Nov 10

lore
Share & tools
lore

John Snow

author
#0 lore raw

PATCH 1/1 Python: add support for Python3.15

Update tests, docs and infrastructure to explicitly support and test Python3.15.

---
 configure                              | 2 +-
 tests/docker/dockerfiles/python.docker | 5 ++---
 python/Makefile                        | 4 ++--
 python/setup.cfg                       | 3 ++-
 4 files changed, 7 insertions(+), 7 deletions(-)
configure +1 -1
index af14a9c23ef..745899b0e6d 100755
@@ -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
tests/docker/dockerfiles/python.docker +2 -3
index 79c554a2d87..86b38ba55dd 100644
@@ -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
python/Makefile +2 -2
index 7868a48a232..99066bfa3e0 100644
@@ -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 ""
python/setup.cfg +2 -1
index 927f72a46f6..d4130a2b27b 100644
@@ -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]
Signature · 1 line
2.56.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · John Snow

Update tests, docs and infrastructure to explicitly support and test Python3.15.

---
 configure                              | 2 +-
 tests/docker/dockerfiles/python.docker | 5 ++---
 python/Makefile                        | 4 ++--
 python/setup.cfg                       | 3 ++-
 4 files changed, 7 insertions(+), 7 deletions(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|