[PATCH] Python: add support for Python3.15

John Snow posted 1 patch 1 week, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261109193145.3557626-1-jsnow@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
configure                              | 2 +-
tests/docker/dockerfiles/python.docker | 5 ++---
python/Makefile                        | 4 ++--
python/setup.cfg                       | 3 ++-
4 files changed, 7 insertions(+), 7 deletions(-)
[PATCH] Python: add support for Python3.15
Posted by John Snow 1 week, 6 days ago
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
Re: [PATCH] Python: add support for Python3.15
Posted by Pierrick Bouvier 1 week, 5 days ago
On 11/9/2026 11:31 AM, John Snow wrote:
> 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(-)
> 

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Re: [PATCH] Python: add support for Python3.15
Posted by Daniel P. Berrangé 1 week, 6 days ago
On Mon, Nov 09, 2026 at 02:31:45PM -0500, John Snow wrote:
> 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(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|