Skip to contentSkip to conversation

Python: drop avocado, formally support python3.14

PATCH Superseded John Snow 2 participants 11 messages Feb 25 – Feb 27

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

John Snow

author
#0 lore raw

v2 cover Python: drop avocado, formally support python3.14

This patchset drops avocado for the python tests, which fixes the optional python-check-tox GitLab CI test, and adds formal testing and support for Python3.14 to QEMU.

v2:
- Also search for Python3.14 during configure
- Rebase on top of master now that qemu.qmp is dropped

John Snow (4):
python: pin 'wheel' version in minreqs test
python: replace avocado tests with pytest
python: drop avocado
python: add formal python3.14 support and testing

 python/README.rst              |  2 -
 configure                      |  4 +-
 python/Makefile                |  6 +--
 python/avocado.cfg             | 13 -----
 python/setup.cfg               |  5 +-
 python/tests/flake8.sh         |  3 --
 python/tests/iotests-mypy.sh   |  4 --
 python/tests/iotests-pylint.sh |  5 --
 python/tests/isort.sh          |  3 --
 python/tests/linters.py        | 89 ++++++++++++++++++++++++++++++++++
 python/tests/minreqs.txt       |  3 +-
 python/tests/mypy.sh           |  3 --
 python/tests/pylint.sh         |  4 --
 python/tests/qapi-flake8.sh    |  6 ---
 python/tests/qapi-isort.sh     |  8 ---
 python/tests/qapi-mypy.sh      |  4 --
 python/tests/qapi-pylint.sh    |  8 ---
 17 files changed, 98 insertions(+), 72 deletions(-)
 delete mode 100644 python/avocado.cfg
 delete mode 100755 python/tests/flake8.sh
 delete mode 100755 python/tests/iotests-mypy.sh
 delete mode 100755 python/tests/iotests-pylint.sh
 delete mode 100755 python/tests/isort.sh
 create mode 100644 python/tests/linters.py
 delete mode 100755 python/tests/mypy.sh
 delete mode 100755 python/tests/pylint.sh
 delete mode 100755 python/tests/qapi-flake8.sh
 delete mode 100755 python/tests/qapi-isort.sh
 delete mode 100755 python/tests/qapi-mypy.sh
 delete mode 100755 python/tests/qapi-pylint.sh
Signature · 1 line
2.53.0
author
#1 lore raw

PATCH v2 1/4 python: pin 'wheel' version in minreqs test

With recent python packaging ecosystem updates, the latest 'wheel' is no longer compatible with older packages - and was somehow still compatible with our Python 3.9 environment. Pin wheel to an older version (Version based on Debian 11's available wheel package) to remove warnings during the minreqs test.

---
 python/Makefile          | 2 --
 python/tests/minreqs.txt | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
python/Makefile +0 -2
index 32aedce4137..b6c9cd1bce2 100644
@@ -63,8 +63,6 @@ $(QEMU_MINVENV_DIR) $(QEMU_MINVENV_DIR)/bin/activate: setup.cfg tests/minreqs.tx
 	@(								\
 		echo "ACTIVATE $(QEMU_MINVENV_DIR)";			\
 		. $(QEMU_MINVENV_DIR)/bin/activate;			\
-		echo "INSTALL wheel $(QEMU_MINVENV_DIR)";               \
-		$(PIP_INSTALL) wheel 1>/dev/null;		               \
 		echo "INSTALL -r tests/minreqs.txt $(QEMU_MINVENV_DIR)";\
 		$(PIP_INSTALL) -r tests/minreqs.txt 1>/dev/null;	\
 		echo "INSTALL -e qemu $(QEMU_MINVENV_DIR)";		\
python/tests/minreqs.txt +1 -0
index 855b5129c94..38b17d17e14 100644
@@ -16,6 +16,7 @@
 # installation of the QEMU package itself fails, failing to find
 # setuptools.
 setuptools<=70
+wheel==0.34.2
 
 # Dependencies for qapidoc/qapi_domain et al
 sphinx==3.4.3
Signature · 1 line
2.53.0
Reviewed-by on v2 1/4
#2 lore raw

Re: [PATCH v2 1/4] python: pin 'wheel' version in minreqs test

Quoted 11 lines · John Snow

With recent python packaging ecosystem updates, the latest 'wheel' is no longer compatible with older packages - and was somehow still compatible with our Python 3.9 environment. Pin wheel to an older version (Version based on Debian 11's available wheel package) to remove warnings during the minreqs test.

---
 python/Makefile          | 2 --
 python/tests/minreqs.txt | 1 +
 2 files changed, 1 insertion(+), 2 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 :|
author
#3 lore raw

PATCH v2 2/4 python: replace avocado tests with pytest

In reply to John Snow

Following suit with the rest of this repository, drop avocado and replace it with the Python standard "pytest" package.

In this case, we do not truly need pytest as all we are using it for is running other python processes formerly launched by shell scripts, but this matches how the standalone python-qemu-qmp package does things, which keeps things simple on my end.

(pytest version chosen based off of Debian 11's package version as queried by repology; under the assumption that this is the likely the oldest version we currently leverage in testing.)

---
 python/Makefile          |  4 +-
 python/setup.cfg         |  1 +
 python/tests/linters.py  | 89 ++++++++++++++++++++++++++++++++++++++++
 python/tests/minreqs.txt |  1 +
 4 files changed, 93 insertions(+), 2 deletions(-)
 create mode 100644 python/tests/linters.py
python/Makefile +2 -2
index b6c9cd1bce2..42994d39618 100644
@@ -105,7 +105,7 @@ develop:
 
 .PHONY: check
 check:
-	@avocado --config avocado.cfg run tests/
+	@pytest -v tests/*.py
 
 .PHONY: check-tox
 check-tox:
@@ -113,7 +113,7 @@ check-tox:
 
 .PHONY: check-coverage
 check-coverage:
-	@coverage run -m avocado --config avocado.cfg run tests/*.py
+	@coverage run -m pytest -v tests/*.py
 	@coverage combine
 	@coverage html
 	@coverage report
python/setup.cfg +1 -0
index c46a95f8d41..03344526730 100644
@@ -43,6 +43,7 @@ devel =
     mypy >= 1.4.0
     pylint >= 2.17.3
     pylint != 3.2.4; python_version<"3.9"
+    pytest >= 6.0.2
     tox >= 3.18.0
     sphinx >= 3.4.3
 
python/tests/linters.py new file +89 -0

89 lines not on this page · raw message

python/tests/minreqs.txt +1 -0
index 38b17d17e14..19912027076 100644
@@ -32,6 +32,7 @@ fusepy==2.0.4
 
 # Test-runners, utilities, etc.
 avocado-framework==90.0
+pytest==6.0.2
 
 # Linters
 flake8==5.0.4
Signature · 1 line
2.53.0
#4 lore raw

Re: [PATCH v2 2/4] python: replace avocado tests with pytest

Quoted 7 lines · John Snow

Following suit with the rest of this repository, drop avocado and replace it with the Python standard "pytest" package.

In this case, we do not truly need pytest as all we are using it for is running other python processes formerly launched by shell scripts, but this matches how the standalone python-qemu-qmp package does things, which keeps things simple on my end.

From the POV of QEMU we don't really want 'pytest' in the loop any more than we want avocado. The desire is for "meson" to be the test harness.

If this use of a pytest is just a temporary stepping stone towards fully integrating with meson, then that's acceptable but lets note that this is a temporary solution in the commit message.

Quoted 54 lines

(pytest version chosen based off of Debian 11's package version as queried by repology; under the assumption that this is the likely the oldest version we currently leverage in testing.)

---
 python/Makefile          |  4 +-
 python/setup.cfg         |  1 +
 python/tests/linters.py  | 89 ++++++++++++++++++++++++++++++++++++++++
 python/tests/minreqs.txt |  1 +
 4 files changed, 93 insertions(+), 2 deletions(-)
 create mode 100644 python/tests/linters.py
python/Makefile +2 -2
index b6c9cd1bce2..42994d39618 100644
@@ -105,7 +105,7 @@ develop:
 
 .PHONY: check
 check:
-	@avocado --config avocado.cfg run tests/
+	@pytest -v tests/*.py
 
 .PHONY: check-tox
 check-tox:
@@ -113,7 +113,7 @@ check-tox:
 
 .PHONY: check-coverage
 check-coverage:
-	@coverage run -m avocado --config avocado.cfg run tests/*.py
+	@coverage run -m pytest -v tests/*.py
 	@coverage combine
 	@coverage html
 	@coverage report
python/setup.cfg +1 -0
index c46a95f8d41..03344526730 100644
@@ -43,6 +43,7 @@ devel =
     mypy >= 1.4.0
     pylint >= 2.17.3
     pylint != 3.2.4; python_version<"3.9"
+    pytest >= 6.0.2
     tox >= 3.18.0
     sphinx >= 3.4.3
 
python/tests/linters.py new file +0 -0
new file mode 100644
index 00000000000..28556c09910

python/tests/linters.py line 4

Quoted 4 lines
python/tests/linters.py new file +4 -0
@@ -0,0 +1,89 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+import os
+import subprocess

from subprocess import check_call

python/tests/linters.py line 9

Quoted 5 lines
python/tests/linters.py new file +5 -0
+import sys
+
+
+def pyrun(*args):
+    subprocess.run((sys.executable, *args), check=True)

Not sure this is worth the trouble compared to doing...

python/tests/linters.py line 15

Quoted 6 lines
python/tests/linters.py new file +6 -0
+
+
+class TestLinters:
+
+    def test_flake8_pkg(self):
+        pyrun("-m", "flake8", "qemu/")

...this inline:

    check_call([sys.executable, "-m", "flake8", "qemu/"])

python/tests/linters.py line 57

Quoted 7 lines
python/tests/linters.py new file +7 -0
+    def test_mypy_iotests(self):
+        cwd = os.getcwd()
+        try:
+            os.chdir("../tests/qemu-iotests/")
+            pyrun("-m", "linters", "--mypy")
+        finally:
+            os.chdir(cwd)

This dance could be replaced with

    check_call([sys.executable, "-m", "linters", "--mpypy"],
               cwd="../tests/qemu-iotests/")

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 :|
author
#5 lore raw

Re: [PATCH v2 2/4] python: replace avocado tests with pytest

Quoted 10 lines · Daniel P. Berrangé
Quoted 7 lines · John Snow

Following suit with the rest of this repository, drop avocado and replace it with the Python standard "pytest" package.

In this case, we do not truly need pytest as all we are using it for is running other python processes formerly launched by shell scripts, but this matches how the standalone python-qemu-qmp package does things, which keeps things simple on my end.

Quoted 8 lines

From the POV of QEMU we don't really want 'pytest' in the loop any more than we want avocado. The desire is for "meson" to be the test harness.

If this use of a pytest is just a temporary stepping stone towards fully integrating with meson, then that's acceptable but lets note that this is a temporary solution in the commit message.

Admittedly I wasn't thinking about just using meson directly, so I suppose this *is* just a stepping stone. My only question for meson integration is how can I set up the deps so that "make check" will try to install the linting deps and run the python tests, but skips these tests if we are offline and don't have the deps. i.e. "try to run these tests, but don't error out if we can't"

Hazarding a guess: make the python tests depend on a linter group, add a custom target for that linter group, allow failure in that custom target (how?), then configure the individual meson test cases to skip if the deps are not present.

(Guess I'll go look at your older series and see how you handled this...)

Quoted 49 lines
Quoted 49 lines

(pytest version chosen based off of Debian 11's package version as queried by repology; under the assumption that this is the likely the oldest version we currently leverage in testing.)

---
 python/Makefile          |  4 +-
 python/setup.cfg         |  1 +
 python/tests/linters.py  | 89 ++++++++++++++++++++++++++++++++++++++++
 python/tests/minreqs.txt |  1 +
 4 files changed, 93 insertions(+), 2 deletions(-)
 create mode 100644 python/tests/linters.py
python/Makefile +2 -2
index b6c9cd1bce2..42994d39618 100644
@@ -105,7 +105,7 @@ develop:
 
 .PHONY: check
 check:
-     @avocado --config avocado.cfg run tests/
+     @pytest -v tests/*.py
 
 .PHONY: check-tox
 check-tox:
@@ -113,7 +113,7 @@ check-tox:
 
 .PHONY: check-coverage
 check-coverage:
-     @coverage run -m avocado --config avocado.cfg run tests/*.py
+     @coverage run -m pytest -v tests/*.py
      @coverage combine
      @coverage html
      @coverage report
python/setup.cfg +1 -0
index c46a95f8d41..03344526730 100644
@@ -43,6 +43,7 @@ devel =
     mypy >= 1.4.0
     pylint >= 2.17.3
     pylint != 3.2.4; python_version<"3.9"
+    pytest >= 6.0.2
     tox >= 3.18.0
     sphinx >= 3.4.3
 
Quoted 12 lines

python/tests/linters.py line 4

Quoted 10 lines
python/tests/linters.py new file +4 -0
new file mode 100644
index 00000000000..28556c09910
@@ -0,0 +1,89 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+import os
+import subprocess

from subprocess import check_call

oooh.

Quoted 30 lines

python/tests/linters.py line 9

Quoted 6 lines
python/tests/linters.py new file +5 -0
+import sys
+
+
+def pyrun(*args):
+    subprocess.run((sys.executable, *args), check=True)

Not sure this is worth the trouble compared to doing...

python/tests/linters.py line 15

Quoted 6 lines
python/tests/linters.py new file +6 -0
+
+
+class TestLinters:
+
+    def test_flake8_pkg(self):
+        pyrun("-m", "flake8", "qemu/")

...this inline:

    check_call([sys.executable, "-m", "flake8", "qemu/"])

python/tests/linters.py line 57

Quoted 7 lines
python/tests/linters.py new file +7 -0
+    def test_mypy_iotests(self):
+        cwd = os.getcwd()
+        try:
+            os.chdir("../tests/qemu-iotests/")
+            pyrun("-m", "linters", "--mypy")
+        finally:
+            os.chdir(cwd)
Quoted 4 lines

This dance could be replaced with

    check_call([sys.executable, "-m", "linters", "--mpypy"],
               cwd="../tests/qemu-iotests/")

Learning new things every day.

Quoted 10 lines

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 :|
#6 lore raw

Re: [PATCH v2 2/4] python: replace avocado tests with pytest

Quoted 27 lines · John Snow
Quoted 10 lines · Daniel P. Berrangé
Quoted 7 lines · John Snow

Following suit with the rest of this repository, drop avocado and replace it with the Python standard "pytest" package.

In this case, we do not truly need pytest as all we are using it for is running other python processes formerly launched by shell scripts, but this matches how the standalone python-qemu-qmp package does things, which keeps things simple on my end.

Quoted 8 lines

From the POV of QEMU we don't really want 'pytest' in the loop any more than we want avocado. The desire is for "meson" to be the test harness.

If this use of a pytest is just a temporary stepping stone towards fully integrating with meson, then that's acceptable but lets note that this is a temporary solution in the commit message.

Admittedly I wasn't thinking about just using meson directly, so I suppose this *is* just a stepping stone. My only question for meson integration is how can I set up the deps so that "make check" will try to install the linting deps and run the python tests, but skips these tests if we are offline and don't have the deps. i.e. "try to run these tests, but don't error out if we can't"

Quoted 6 lines

Hazarding a guess: make the python tests depend on a linter group, add a custom target for that linter group, allow failure in that custom target (how?), then configure the individual meson test cases to skip if the deps are not present.

(Guess I'll go look at your older series and see how you handled this...)

I didn't handle the complexity of venvs in my old series. IIRC I just blindly used the host python tools, since it was just PoC quality not a mergable series.

When doing it for real, we'd end up wanting a selection of different meson suites. Perhaps a default suite using the same python version as meson itself, for integration in 'make check' and a set of extra suites, one per python venv target for SPEED=thorough.

If --disable-download was given and the host tools for the linters were missing we would have to skip the tests in 'make check', but with SPEED=thorough we could auto-download everything.

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 :|
author
#7 lore raw

PATCH v2 3/4 python: drop avocado

In reply to John Snow

Avocado-framework is no longer used for anything, so it can be removed.

---
 python/README.rst              |  2 --
 python/avocado.cfg             | 13 -------------
 python/setup.cfg               |  1 -
 python/tests/flake8.sh         |  3 ---
 python/tests/iotests-mypy.sh   |  4 ----
 python/tests/iotests-pylint.sh |  5 -----
 python/tests/isort.sh          |  3 ---
 python/tests/minreqs.txt       |  1 -
 python/tests/mypy.sh           |  3 ---
 python/tests/pylint.sh         |  4 ----
 python/tests/qapi-flake8.sh    |  6 ------
 python/tests/qapi-isort.sh     |  8 --------
 python/tests/qapi-mypy.sh      |  4 ----
 python/tests/qapi-pylint.sh    |  8 --------
 14 files changed, 65 deletions(-)
 delete mode 100644 python/avocado.cfg
 delete mode 100755 python/tests/flake8.sh
 delete mode 100755 python/tests/iotests-mypy.sh
 delete mode 100755 python/tests/iotests-pylint.sh
 delete mode 100755 python/tests/isort.sh
 delete mode 100755 python/tests/mypy.sh
 delete mode 100755 python/tests/pylint.sh
 delete mode 100755 python/tests/qapi-flake8.sh
 delete mode 100755 python/tests/qapi-isort.sh
 delete mode 100755 python/tests/qapi-mypy.sh
 delete mode 100755 python/tests/qapi-pylint.sh
python/README.rst +0 -2
index ec5cb5e971b..e34d1a1c7b1 100644
@@ -108,8 +108,6 @@ Files in this directory
 
 - ``qemu/`` Python 'qemu' namespace package source directory.
 - ``tests/`` Python package tests directory.
-- ``avocado.cfg`` Configuration for the Avocado test-runner.
-  Used by ``make check`` et al.
 - ``Makefile`` provides some common testing/installation invocations.
   Try ``make help`` to see available targets.
 - ``MANIFEST.in`` is read by python setuptools, it specifies additional files
python/avocado.cfg deleted +0 -13
deleted file mode 100644
index a4604200594..00000000000
@@ -1,13 +0,0 @@
-[run]
-test_runner = nrunner
-
-[simpletests]
-# Don't show stdout/stderr in the test *summary*
-status.failure_fields = ['status']
-
-[job]
-# Don't show the full debug.log output; only select stdout/stderr.
-output.testlogs.logfiles = ['stdout', 'stderr']
-
-# Show full stdout/stderr only on tests that FAIL
-output.testlogs.statuses = ['FAIL']
python/setup.cfg +0 -1
index 03344526730..e5bf498f0e1 100644
@@ -35,7 +35,6 @@ install_requires =
 [options.extras_require]
 # Remember to update tests/minreqs.txt if changing anything below:
 devel =
-    avocado-framework >= 90.0
     distlib >= 0.3.6
     flake8 >= 5.0.4
     fusepy >= 2.0.4
python/tests/flake8.sh deleted +0 -3
deleted file mode 100755
index e0136996453..00000000000
@@ -1,3 +0,0 @@
-#!/bin/sh -e
-python3 -m flake8 qemu/
-python3 -m flake8 scripts/
python/tests/iotests-mypy.sh deleted +0 -4
deleted file mode 100755
index ee764708199..00000000000
@@ -1,4 +0,0 @@
-#!/bin/sh -e
-
-cd ../tests/qemu-iotests/
-python3 -m linters --mypy
python/tests/iotests-pylint.sh deleted +0 -5
deleted file mode 100755
index 33c5ae900a5..00000000000
@@ -1,5 +0,0 @@
-#!/bin/sh -e
-
-cd ../tests/qemu-iotests/
-# See commit message for environment variable explainer.
-SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m linters --pylint
python/tests/isort.sh deleted +0 -3
deleted file mode 100755
index 66c2f7df0fd..00000000000
@@ -1,3 +0,0 @@
-#!/bin/sh -e
-python3 -m isort -c qemu/
-python3 -m isort -c scripts/
python/tests/minreqs.txt +0 -1
index 19912027076..05c3bdb89f8 100644
@@ -31,7 +31,6 @@ distlib==0.3.6
 fusepy==2.0.4
 
 # Test-runners, utilities, etc.
-avocado-framework==90.0
 pytest==6.0.2
 
 # Linters
python/tests/mypy.sh deleted +0 -3
deleted file mode 100755
index a33a3f58ab3..00000000000
@@ -1,3 +0,0 @@
-#!/bin/sh -e
-python3 -m mypy -p qemu
-python3 -m mypy scripts/
python/tests/pylint.sh deleted +0 -4
deleted file mode 100755
index 2b68da90df7..00000000000
@@ -1,4 +0,0 @@
-#!/bin/sh -e
-# See commit message for environment variable explainer.
-SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pylint qemu/
-SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pylint scripts/
python/tests/qapi-flake8.sh deleted +0 -6
deleted file mode 100755
index c69f9ea2e00..00000000000
@@ -1,6 +0,0 @@
-#!/bin/sh -e
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-python3 -m flake8 ../scripts/qapi/ \
-        ../docs/sphinx/qapidoc.py \
-        ../docs/sphinx/qapi_domain.py
python/tests/qapi-isort.sh deleted +0 -8
deleted file mode 100755
index 067c16d5d94..00000000000
@@ -1,8 +0,0 @@
-#!/bin/sh -e
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-python3 -m isort --sp . -c ../scripts/qapi/
-# Force isort to recognize "compat" as a local module and not third-party
-python3 -m isort --sp . -c -p compat \
-        ../docs/sphinx/qapi_domain.py \
-        ../docs/sphinx/qapidoc.py
python/tests/qapi-mypy.sh deleted +0 -4
deleted file mode 100755
index 363dbaf8c06..00000000000
@@ -1,4 +0,0 @@
-#!/bin/sh -e
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-python3 -m mypy ../scripts/qapi
python/tests/qapi-pylint.sh deleted +0 -8
deleted file mode 100755
index 8767d9d2a2d..00000000000
@@ -1,8 +0,0 @@
-#!/bin/sh -e
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pylint \
-                                --rcfile=../scripts/qapi/pylintrc \
-                                ../scripts/qapi/ \
-                                ../docs/sphinx/qapidoc.py \
-                                ../docs/sphinx/qapi_domain.py
Signature · 1 line
2.53.0
Reviewed-by on v2 3/4
#8 lore raw

Re: [PATCH v2 3/4] python: drop avocado

Quoted 22 lines · John Snow

Avocado-framework is no longer used for anything, so it can be removed.

---
 python/README.rst              |  2 --
 python/avocado.cfg             | 13 -------------
 python/setup.cfg               |  1 -
 python/tests/flake8.sh         |  3 ---
 python/tests/iotests-mypy.sh   |  4 ----
 python/tests/iotests-pylint.sh |  5 -----
 python/tests/isort.sh          |  3 ---
 python/tests/minreqs.txt       |  1 -
 python/tests/mypy.sh           |  3 ---
 python/tests/pylint.sh         |  4 ----
 python/tests/qapi-flake8.sh    |  6 ------
 python/tests/qapi-isort.sh     |  8 --------
 python/tests/qapi-mypy.sh      |  4 ----
 python/tests/qapi-pylint.sh    |  8 --------
 14 files changed, 65 deletions(-)
 delete mode 100644 python/avocado.cfg
 delete mode 100755 python/tests/flake8.sh
 delete mode 100755 python/tests/iotests-mypy.sh
Quoted 8 lines
 delete mode 100755 python/tests/iotests-pylint.sh
 delete mode 100755 python/tests/isort.sh
 delete mode 100755 python/tests/mypy.sh
 delete mode 100755 python/tests/pylint.sh
 delete mode 100755 python/tests/qapi-flake8.sh
 delete mode 100755 python/tests/qapi-isort.sh
 delete mode 100755 python/tests/qapi-mypy.sh
 delete mode 100755 python/tests/qapi-pylint.sh

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 :|
author
#9 lore raw

PATCH v2 4/4 python: add formal python3.14 support and testing

In reply to John Snow
---
 configure        | 4 ++--
 python/setup.cfg | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
configure +2 -2
index c4837eba2b1..d44e9e86148 100755
@@ -527,8 +527,8 @@ 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.13 python3.12 python3.11 \
-                          python3.10 python3.9 ; do
+    for binary in python3 python python 3.14 python3.13 python3.12 \
+                          python3.11 python3.10 python3.9 ; do
         if has "$binary"; then
             python=$(command -v "$binary")
             if check_py_version "$python"; then
python/setup.cfg +2 -1
index e5bf498f0e1..80975933971 100644
@@ -19,6 +19,7 @@ classifiers =
     Programming Language :: Python :: 3.11
     Programming Language :: Python :: 3.12
     Programming Language :: Python :: 3.13
+    Programming Language :: Python :: 3.14
     Typing :: Typed
 
 [options]
@@ -162,7 +163,7 @@ multi_line_output=3
 # of python available on your system to run this test.
 
 [tox:tox]
-envlist = py39, py310, py311, py312, py313
+envlist = py39, py310, py311, py312, py313, py314
 skip_missing_interpreters = true
 
 [testenv]
Signature · 1 line
2.53.0
Reviewed-by on v2 4/4
#10 lore raw

Re: [PATCH v2 4/4] python: add formal python3.14 support and testing

Quoted 5 lines · John Snow
---
 configure        | 4 ++--
 python/setup.cfg | 3 ++-
 2 files changed, 4 insertions(+), 3 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 :|