From nobody Sun Apr 12 04:21:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1771305119; cv=none; d=zohomail.com; s=zohoarc; b=f7zMiShAThamgx+Li0QWjrVMMC3L25oqoYOr/dc9w0uG4F4nFHkD1xsCWVugLIkHQb+/VvosV+PSG/beob4LkXcgPKoveXMCQHsIIiDru25p6TW8A3FxpwHpVNXa6ZOtn/Ni7VAxhtOy3XXCto+6WyNuLeSAZzRzBKlcfeBr0xg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771305119; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=3piZw7mx8H8ZRPxcaYjHBw/SvUX6/of2m3+OJq3TxyM=; b=kMfzJngo4xujEJXnExIT+YiQ9DnwgOKYRuWE4gMlfyW382bFCDvJ2rjdr/JmZIaGJIxaYeXH5wzGLTPe+2SFNa2cK8HtPnJo1jKiMP/CQIbPfeEN7guzcgNypM1x8+Peln6WbXF3rE9eJHI8KGZn+oW+jMV4kV+/qSmNRZ5eHyE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771305119205272.2140710755896; Mon, 16 Feb 2026 21:11:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsDMp-0006iv-VR; Tue, 17 Feb 2026 00:11:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMn-0006iZ-VD for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:22 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMm-0002JA-JN for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:21 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-628-7xlMkK3VOUe55ad9b1VP3A-1; Tue, 17 Feb 2026 00:11:16 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 207E718003F6 for ; Tue, 17 Feb 2026 05:11:16 +0000 (UTC) Received: from jsnow-thinkpadp16vgen1.westford.csb (unknown [10.22.88.120]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1634C18003F6; Tue, 17 Feb 2026 05:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771305079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3piZw7mx8H8ZRPxcaYjHBw/SvUX6/of2m3+OJq3TxyM=; b=hM/9IvL2QBsgqUl9F9Ekl89rr4KAfVzDWopF0lE2NdStQyvt81j6SRfVrzo2AQoP+MBEU1 rf5JN59xwwamJYkWVEDoB/O3JCH1YYsk9U1FG/7TSNBlcgHRk12PxZTQeIgB8Tw/YETQaY Ct2hneC85NKw8AFa95dyOBHlkcyLTvo= X-MC-Unique: 7xlMkK3VOUe55ad9b1VP3A-1 X-Mimecast-MFC-AGG-ID: 7xlMkK3VOUe55ad9b1VP3A_1771305076 From: John Snow To: qemu-devel@nongnu.org Cc: Cleber Rosa , John Snow Subject: [PATCH 1/4] python: add pinned 'wheel' version Date: Tue, 17 Feb 2026 00:11:09 -0500 Message-ID: <20260217051112.446957-2-jsnow@redhat.com> In-Reply-To: <20260217051112.446957-1-jsnow@redhat.com> References: <20260217051112.446957-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1771305120737154100 Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: John Snow --- python/Makefile | 2 -- python/tests/minreqs.txt | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/Makefile b/python/Makefile index 32aedce4137..b6c9cd1bce2 100644 --- a/python/Makefile +++ b/python/Makefile @@ -63,8 +63,6 @@ $(QEMU_MINVENV_DIR) $(QEMU_MINVENV_DIR)/bin/activate: set= up.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)"; \ diff --git a/python/tests/minreqs.txt b/python/tests/minreqs.txt index 855b5129c94..38b17d17e14 100644 --- a/python/tests/minreqs.txt +++ b/python/tests/minreqs.txt @@ -16,6 +16,7 @@ # installation of the QEMU package itself fails, failing to find # setuptools. setuptools<=3D70 +wheel=3D=3D0.34.2 =20 # Dependencies for qapidoc/qapi_domain et al sphinx=3D=3D3.4.3 --=20 2.53.0 From nobody Sun Apr 12 04:21:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1771305130; cv=none; d=zohomail.com; s=zohoarc; b=VHDwv+ZvA86kbh26d7dEi2xbb2d9IabVW6xSxSct735MWePwN+D5UY0slAs36qqLG0G3x7qeh/DRkcCj5gDfwOwguy1kgEcQWIexHsq3Wk3RLEl4jP8yn89IDTYSxHmRhgCc+rsxz01UHUIVVxT42VpOTxnK0yHXN7TevuPjXH0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771305130; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=IuGfykvuaPWnW+5hdWJzME16NjhM0NzpRBIzZgi4ek4=; b=ZXGgVa+iVS2b+slLWko/HaxtvSLKAtnF2+7v7Uepo+kS8W3Ar8XIo0bUVKpvh58sK21tbkbv1AbyDqGuS1IFoHzxXU7WKiZHVEBqK/ZYrH/S1ceoBVIOEvVlU1uOoWIbJhBU3LxW/yMEqQi2klrkJyOy/x3Jo6OcAeRRrlErN2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771305129989944.5807335947759; Mon, 16 Feb 2026 21:12:09 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsDMq-0006jE-H1; Tue, 17 Feb 2026 00:11:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMp-0006iq-Ni for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:23 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMo-0002JK-3f for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:23 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-199--bXMIQiNNaeXQdPJ3NJzfw-1; Tue, 17 Feb 2026 00:11:18 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C4D9F1800265 for ; Tue, 17 Feb 2026 05:11:17 +0000 (UTC) Received: from jsnow-thinkpadp16vgen1.westford.csb (unknown [10.22.88.120]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BD3D618003F6; Tue, 17 Feb 2026 05:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771305081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IuGfykvuaPWnW+5hdWJzME16NjhM0NzpRBIzZgi4ek4=; b=BxF8pBL8XVHeIVgKr6RPA53UT6Kin0/RO2ckMDp1FSzr9/Uvp34f3uCDRA3I5d7b1C1G0m /M4sOYjAFt8b/Jtp1kfAkbgCv0Imf0V6B5UC2VSPDSB24NTmlyVAXDl0+tmOEQSoytNwt5 6So12B6fAKDYIHvMEZuOdP4UXiFRFuw= X-MC-Unique: -bXMIQiNNaeXQdPJ3NJzfw-1 X-Mimecast-MFC-AGG-ID: -bXMIQiNNaeXQdPJ3NJzfw_1771305078 From: John Snow To: qemu-devel@nongnu.org Cc: Cleber Rosa , John Snow Subject: [PATCH 2/4] python: replace avocado tests with pytest Date: Tue, 17 Feb 2026 00:11:10 -0500 Message-ID: <20260217051112.446957-3-jsnow@redhat.com> In-Reply-To: <20260217051112.446957-1-jsnow@redhat.com> References: <20260217051112.446957-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1771305132742158500 Content-Type: text/plain; charset="utf-8" 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.) Signed-off-by: John Snow --- 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 diff --git a/python/Makefile b/python/Makefile index b6c9cd1bce2..42994d39618 100644 --- a/python/Makefile +++ b/python/Makefile @@ -105,7 +105,7 @@ develop: =20 .PHONY: check check: - @avocado --config avocado.cfg run tests/ + @pytest -v tests/*.py =20 .PHONY: check-tox check-tox: @@ -113,7 +113,7 @@ check-tox: =20 .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 diff --git a/python/setup.cfg b/python/setup.cfg index c46a95f8d41..03344526730 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -43,6 +43,7 @@ devel =3D mypy >=3D 1.4.0 pylint >=3D 2.17.3 pylint !=3D 3.2.4; python_version<"3.9" + pytest >=3D 6.0.2 tox >=3D 3.18.0 sphinx >=3D 3.4.3 =20 diff --git a/python/tests/linters.py b/python/tests/linters.py new file mode 100644 index 00000000000..28556c09910 --- /dev/null +++ b/python/tests/linters.py @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +import subprocess +import sys + + +def pyrun(*args): + subprocess.run((sys.executable, *args), check=3DTrue) + + +class TestLinters: + + def test_flake8_pkg(self): + pyrun("-m", "flake8", "qemu/") + + def test_flake8_scripts(self): + pyrun("-m", "flake8", "scripts/") + + def test_flake8_qapi(self): + pyrun("-m", "flake8", + "../scripts/qapi/", + "../docs/sphinx/qapidoc.py", + "../docs/sphinx/qapi_domain.py") + + def test_isort_pkg(self): + pyrun("-m", "isort", "-c", "qemu/") + + def test_isort_scripts(self): + pyrun("-m", "isort", "-c", "scripts/") + + def test_isort_qapi(self): + pyrun("-m", "isort", "--sp", ".", "-c", "../scripts/qapi/") + + def test_isort_qapi_sphinx(self): + # Force isort to recognize 'compat' as a local module and not + # third-party + pyrun("-m", "isort", "--sp", ".", "-c", "-p", "compat", + "../docs/sphinx/qapi_domain.py", + "../docs/sphinx/qapidoc.py") + + def test_mypy_pkg(self): + pyrun("-m", "mypy", "-p", "qemu") + + def test_mypy_scripts(self): + pyrun("-m", "mypy", "scripts/") + + def test_mypy_qapi(self): + pyrun("-m", "mypy", "../scripts/qapi") + + def test_mypy_iotests(self): + cwd =3D os.getcwd() + try: + os.chdir("../tests/qemu-iotests/") + pyrun("-m", "linters", "--mypy") + finally: + os.chdir(cwd) + + # Setuptools v60 introduced the SETUPTOOLS_USE_DISTUTILS=3Dstdlib + # workaround; stdlib distutils was fully removed in Python + # 3.12+. Once we are on >=3D3.12+ exclusively, this workaround can be + # dropped safely. Until then, it is needed for some versions on + # Fedora/Debian distributions which relied upon distro-patched + # setuptools present in CPython, but not within setuptools itself. + + def test_pylint_pkg(self): + os.environ['SETUPTOOLS_USE_DISTUTILS'] =3D 'stdlib' + pyrun("-m", "pylint", "qemu/") + + def test_pylint_scripts(self): + os.environ['SETUPTOOLS_USE_DISTUTILS'] =3D 'stdlib' + pyrun("-m", "pylint", "qemu/") + + def test_pylint_qapi(self): + os.environ['SETUPTOOLS_USE_DISTUTILS'] =3D 'stdlib' + pyrun("-m", "pylint", + "--rcfile=3D../scripts/qapi/pylintrc", + "../scripts/qapi/", + "../docs/sphinx/qapidoc.py", + "../docs/sphinx/qapi_domain.py") + + def test_pylint_iotests(self): + os.environ['SETUPTOOLS_USE_DISTUTILS'] =3D 'stdlib' + cwd =3D os.getcwd() + try: + os.chdir("../tests/qemu-iotests/") + pyrun("-m", "linters", "--pylint") + finally: + os.chdir(cwd) diff --git a/python/tests/minreqs.txt b/python/tests/minreqs.txt index 38b17d17e14..19912027076 100644 --- a/python/tests/minreqs.txt +++ b/python/tests/minreqs.txt @@ -32,6 +32,7 @@ fusepy=3D=3D2.0.4 =20 # Test-runners, utilities, etc. avocado-framework=3D=3D90.0 +pytest=3D=3D6.0.2 =20 # Linters flake8=3D=3D5.0.4 --=20 2.53.0 From nobody Sun Apr 12 04:21:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1771305119; cv=none; d=zohomail.com; s=zohoarc; b=RsypLh17eXC6Ta2sWN49rildE8BeizHk6T1/6UKSZvDwCpAoOIrcGaRCUQioPsqjv1YQya3g3ZOpBCZm9ZO2S2hMyHYg1lEveX/pUWIqnUwenyCReu6qragDwtT5TnsIiv0+SwZcUD6bTWGlS5/1EXmA0sbvi7/Io5Ug+XjFr38= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771305119; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=HWRUA8tj40Tz3RR9F8yelmtXUdPZZ2umwgoMnemQSdQ=; b=K1IYpuKX7+eWb9sPbUP05Mw815ibqsIkAJc2K+HTw9DPVDfe0gYys3eVqV4rjEfRZPqMs4OIpTGsCg3Ur6EOR+4iUTlIxF6DjQw6IV0s4XUm2qzffXWmZm22OQj2VW2yaI9UJGwesb6DXLnNpckoWZYO+tYOehHEA191Va78wio= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771305119151499.3202299865876; Mon, 16 Feb 2026 21:11:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsDMr-0006js-WA; Tue, 17 Feb 2026 00:11:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMq-0006jG-SQ for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:24 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMp-0002JZ-4K for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:24 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-541-eMVjBIbZNAWap3m-G1x4sQ-1; Tue, 17 Feb 2026 00:11:20 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 036AA18005AD for ; Tue, 17 Feb 2026 05:11:19 +0000 (UTC) Received: from jsnow-thinkpadp16vgen1.westford.csb (unknown [10.22.88.120]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 49EDD18003F6; Tue, 17 Feb 2026 05:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771305082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HWRUA8tj40Tz3RR9F8yelmtXUdPZZ2umwgoMnemQSdQ=; b=NGkbSORhbm3gjOUdCRN5U90XFFETBDDez4r96xnmVplsqfoEZ+Kt+u2s447oN3cyUw9cyu Kyc0GdMCDpD0EhtfD1RlSc9fYlqhLe1e6Wm2pSLx5X7+DO7TBDu4NkoUoXhugb16YViPyA gSK1+jteWDa1H/EbcjfbDxtwMyEc33E= X-MC-Unique: eMVjBIbZNAWap3m-G1x4sQ-1 X-Mimecast-MFC-AGG-ID: eMVjBIbZNAWap3m-G1x4sQ_1771305079 From: John Snow To: qemu-devel@nongnu.org Cc: Cleber Rosa , John Snow Subject: [PATCH 3/4] python: drop avocado Date: Tue, 17 Feb 2026 00:11:11 -0500 Message-ID: <20260217051112.446957-4-jsnow@redhat.com> In-Reply-To: <20260217051112.446957-1-jsnow@redhat.com> References: <20260217051112.446957-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1771305120812154100 Content-Type: text/plain; charset="utf-8" Avocado-framework is no longer used for anything, so it can be removed. Signed-off-by: John Snow --- 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 diff --git a/python/README.rst b/python/README.rst index ec5cb5e971b..e34d1a1c7b1 100644 --- a/python/README.rst +++ b/python/README.rst @@ -108,8 +108,6 @@ Files in this directory =20 - ``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 fi= les diff --git a/python/avocado.cfg b/python/avocado.cfg deleted file mode 100644 index a4604200594..00000000000 --- a/python/avocado.cfg +++ /dev/null @@ -1,13 +0,0 @@ -[run] -test_runner =3D nrunner - -[simpletests] -# Don't show stdout/stderr in the test *summary* -status.failure_fields =3D ['status'] - -[job] -# Don't show the full debug.log output; only select stdout/stderr. -output.testlogs.logfiles =3D ['stdout', 'stderr'] - -# Show full stdout/stderr only on tests that FAIL -output.testlogs.statuses =3D ['FAIL'] diff --git a/python/setup.cfg b/python/setup.cfg index 03344526730..e5bf498f0e1 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -35,7 +35,6 @@ install_requires =3D [options.extras_require] # Remember to update tests/minreqs.txt if changing anything below: devel =3D - avocado-framework >=3D 90.0 distlib >=3D 0.3.6 flake8 >=3D 5.0.4 fusepy >=3D 2.0.4 diff --git a/python/tests/flake8.sh b/python/tests/flake8.sh deleted file mode 100755 index e0136996453..00000000000 --- a/python/tests/flake8.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -e -python3 -m flake8 qemu/ -python3 -m flake8 scripts/ diff --git a/python/tests/iotests-mypy.sh b/python/tests/iotests-mypy.sh deleted file mode 100755 index ee764708199..00000000000 --- a/python/tests/iotests-mypy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -e - -cd ../tests/qemu-iotests/ -python3 -m linters --mypy diff --git a/python/tests/iotests-pylint.sh b/python/tests/iotests-pylint.sh deleted file mode 100755 index 33c5ae900a5..00000000000 --- a/python/tests/iotests-pylint.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -e - -cd ../tests/qemu-iotests/ -# See commit message for environment variable explainer. -SETUPTOOLS_USE_DISTUTILS=3Dstdlib python3 -m linters --pylint diff --git a/python/tests/isort.sh b/python/tests/isort.sh deleted file mode 100755 index 66c2f7df0fd..00000000000 --- a/python/tests/isort.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -e -python3 -m isort -c qemu/ -python3 -m isort -c scripts/ diff --git a/python/tests/minreqs.txt b/python/tests/minreqs.txt index 19912027076..05c3bdb89f8 100644 --- a/python/tests/minreqs.txt +++ b/python/tests/minreqs.txt @@ -31,7 +31,6 @@ distlib=3D=3D0.3.6 fusepy=3D=3D2.0.4 =20 # Test-runners, utilities, etc. -avocado-framework=3D=3D90.0 pytest=3D=3D6.0.2 =20 # Linters diff --git a/python/tests/mypy.sh b/python/tests/mypy.sh deleted file mode 100755 index a33a3f58ab3..00000000000 --- a/python/tests/mypy.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -e -python3 -m mypy -p qemu -python3 -m mypy scripts/ diff --git a/python/tests/pylint.sh b/python/tests/pylint.sh deleted file mode 100755 index 2b68da90df7..00000000000 --- a/python/tests/pylint.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -e -# See commit message for environment variable explainer. -SETUPTOOLS_USE_DISTUTILS=3Dstdlib python3 -m pylint qemu/ -SETUPTOOLS_USE_DISTUTILS=3Dstdlib python3 -m pylint scripts/ diff --git a/python/tests/qapi-flake8.sh b/python/tests/qapi-flake8.sh deleted file mode 100755 index c69f9ea2e00..00000000000 --- a/python/tests/qapi-flake8.sh +++ /dev/null @@ -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 diff --git a/python/tests/qapi-isort.sh b/python/tests/qapi-isort.sh deleted file mode 100755 index 067c16d5d94..00000000000 --- a/python/tests/qapi-isort.sh +++ /dev/null @@ -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 diff --git a/python/tests/qapi-mypy.sh b/python/tests/qapi-mypy.sh deleted file mode 100755 index 363dbaf8c06..00000000000 --- a/python/tests/qapi-mypy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -e -# SPDX-License-Identifier: GPL-2.0-or-later - -python3 -m mypy ../scripts/qapi diff --git a/python/tests/qapi-pylint.sh b/python/tests/qapi-pylint.sh deleted file mode 100755 index 8767d9d2a2d..00000000000 --- a/python/tests/qapi-pylint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -e -# SPDX-License-Identifier: GPL-2.0-or-later - -SETUPTOOLS_USE_DISTUTILS=3Dstdlib python3 -m pylint \ - --rcfile=3D../scripts/qapi/pylintrc \ - ../scripts/qapi/ \ - ../docs/sphinx/qapidoc.py \ - ../docs/sphinx/qapi_domain.py --=20 2.53.0 From nobody Sun Apr 12 04:21:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1771305139; cv=none; d=zohomail.com; s=zohoarc; b=Su6W21KdMQmkEOaB0PswFZzmUAnADmHV+r4NpY6zJ7rHqmsQfCfkv0+v7ZSHayJVTmFRqaEjuhlsXhEAXsjtWF1n6cHZZ53ApKX0wyNjMlawU8iseL+Z+6Mj0wtXWEIxB5ntsqU3atVV8hGeYizW+3PxHtR9lb9ICCaU3cV1Tvs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771305139; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ZMNK/u4T6GyLsKEapVa/Q0nhkqLr/xFn+Upfxdzq4bc=; b=NdKEyNw+ZqdYhPqAnYhgYk/B0AcJ8hTjkElF7j7K+PJ2xfktX3KY0Mnt+PfPG+hnFQijflG6FT6qlj+7S+aff7nIJ5cmU/AqSD1v+yHggCY4JIjqOaZ0q1DLwsvHridP8KtajLo4YrFi3Ni9j6IiQ8PQeHTCyafE3sLikw6vi2c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771305139061254.40113738541402; Mon, 16 Feb 2026 21:12:19 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsDMt-0006kO-EO; Tue, 17 Feb 2026 00:11:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMr-0006jh-SJ for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDMq-0002Jl-CP for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:11:25 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-55-7SVcCxfsOQ-koXEzY65AUg-1; Tue, 17 Feb 2026 00:11:20 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 341CE1800464 for ; Tue, 17 Feb 2026 05:11:20 +0000 (UTC) Received: from jsnow-thinkpadp16vgen1.westford.csb (unknown [10.22.88.120]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3E67C18003F5; Tue, 17 Feb 2026 05:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771305083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZMNK/u4T6GyLsKEapVa/Q0nhkqLr/xFn+Upfxdzq4bc=; b=E1AOH9Xgj4lKNLl9hWnb9fQpq2GEmsahiDmhU4fItkbCp925kjLx/1R92hKyJmJRXkbnvd zc6bKT8zyMNbS0hyI4azUzNYJEsgO+KZ1H0aiIdJyRP9dSn5qjgo+VDbddLHJA9TWSTdpG MMCOgOUxAIhIp8gJm2cWJQ5O1wmKb5k= X-MC-Unique: 7SVcCxfsOQ-koXEzY65AUg-1 X-Mimecast-MFC-AGG-ID: 7SVcCxfsOQ-koXEzY65AUg_1771305080 From: John Snow To: qemu-devel@nongnu.org Cc: Cleber Rosa , John Snow Subject: [PATCH 4/4] python: add formal python3.14 support and testing Date: Tue, 17 Feb 2026 00:11:12 -0500 Message-ID: <20260217051112.446957-5-jsnow@redhat.com> In-Reply-To: <20260217051112.446957-1-jsnow@redhat.com> References: <20260217051112.446957-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1771305140847154100 Content-Type: text/plain; charset="utf-8" Signed-off-by: John Snow --- python/setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/setup.cfg b/python/setup.cfg index e5bf498f0e1..80975933971 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -19,6 +19,7 @@ classifiers =3D Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 Programming Language :: Python :: 3.13 + Programming Language :: Python :: 3.14 Typing :: Typed =20 [options] @@ -162,7 +163,7 @@ multi_line_output=3D3 # of python available on your system to run this test. =20 [tox:tox] -envlist =3D py39, py310, py311, py312, py313 +envlist =3D py39, py310, py311, py312, py313, py314 skip_missing_interpreters =3D true =20 [testenv] --=20 2.53.0