python3-pytest-asyncio: Upgrade to 1.3.0
PATCH 1/9 python3-pytest-asyncio: Upgrade to 1.3.0
---
...-pytest-asyncio_1.1.0.bb => python3-pytest-asyncio_1.3.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pytest-asyncio_1.1.0.bb => python3-pytest-asyncio_1.3.0.bb} (85%)meta-python/recipes-devtools/python/python3-pytest-asyncio_1.3.0.bb renamed from meta-python/recipes-devtools/python/python3-pytest-asyncio_1.1.0.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/pytest-dev/pytest-asyncio" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=136e4f49dbf29942c572a3a8f6e88a77" -SRC_URI[sha256sum] = "796aa822981e01b68c12e4827b8697108f7205020f24b5793b3c41555dab68ea" +SRC_URI[sha256sum] = "d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5" inherit pypi python_setuptools_build_meta
PATCH 2/9 python3-pyzmq: Upgrade to 27.1.0
---
.../{python3-pyzmq_27.0.2.bb => python3-pyzmq_27.1.0.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pyzmq_27.0.2.bb => python3-pyzmq_27.1.0.bb} (95%)meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb renamed from meta-python/recipes-devtools/python/python3-pyzmq_27.0.2.bb +1 -2
@@ -29,8 +29,7 @@ PEP517_BUILD_OPTS = "--skip-dependency-check \ SRC_URI:append = " \ file://run-ptest \ " - -SRC_URI[sha256sum] = "b398dd713b18de89730447347e96a0240225e154db56e35b6bb8447ffdb07798" +SRC_URI[sha256sum] = "ac0765e3d44455adb6ddbf4417dcce460fc40a05978c08efdf2948072f6db540" inherit pypi pkgconfig python_setuptools_build_meta ptest cython
PATCH 3/9 python3-pyzmq: Package pytest.ini with ptests
In reply to Khem Rajpytest 8.4+ is strict about asyncio [1]
however pyzmq is not yet fully ready, and installs its own pytest.ini, add this to ptests package
Fixes the failures e.g.
async def functions are not natively supported.
You need to install a suitable plugin for your async framework, for example:
- anyio
- pytest-asyncio
- pytest-tornasync
- pytest-trio
- pytest-twisted
FAIL: tests/test_auth.py:TestAsyncioAuthentication.test_deny
[1] https://github.com/pytest-dev/pytest/issues/11372
--- meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb | 1 + 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb +1 -0
@@ -59,4 +59,5 @@ RDEPENDS:${PN}-ptest += "\ do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + install -m 0644 ${S}/pytest.ini ${D}${PTEST_PATH}/pytest.ini }
PATCH 4/9 python3-pylint: Upgrade to 4.0.3 release
In reply to Khem RajForward patches to avoid fuzz, no functional change
---
.../0001-Adjust-test-expectations-for-ptest.patch | 4 +---
...yproject.toml-Keep-tool.setuptools.license-files.patch | 8 +++-----
.../{python3-pylint_3.3.8.bb => python3-pylint_4.0.3.bb} | 4 ++--
3 files changed, 6 insertions(+), 10 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pylint_3.3.8.bb => python3-pylint_4.0.3.bb} (95%)meta-python/recipes-devtools/python/python3-pylint/0001-Adjust-test-expectations-for-ptest.patch +1 -3
@@ -12,11 +12,9 @@ Signed-off-by: Dan McGregor <[email protected]> tests/functional/w/wrong_import_order.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) -diff --git a/tests/functional/w/wrong_import_order.txt b/tests/functional/w/wrong_import_order.txt -index 9f143c292..a283467af 100644 --- a/tests/functional/w/wrong_import_order.txt +++ b/tests/functional/w/wrong_import_order.txt -@@ -3,14 +3,14 @@ wrong-import-order:14:0:14:10::"standard import ""sys"" should be placed before +@@ -3,14 +3,14 @@ wrong-import-order:14:0:14:10::"standard wrong-import-order:15:0:15:15::"standard import ""datetime"" should be placed before third party imports ""six"", ""astroid.are_exclusive""":UNDEFINED wrong-import-order:18:0:18:22::"third party import ""totally_missing"" should be placed before local import ""package.Class""":UNDEFINED wrong-import-order:20:0:20:14::"third party import ""astroid"" should be placed before local imports ""package.Class"", "".package""":UNDEFINED
meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch +3 -5
@@ -19,8 +19,6 @@ Signed-off-by: Leon Anavi <[email protected]> pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -diff --git a/pyproject.toml b/pyproject.toml -index a3cc3f43b..5eaf5ee5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,7 @@ name = "pylint"
@@ -33,9 +31,9 @@ index a3cc3f43b..5eaf5ee5e 100644 authors = [ { name = "Python Code Quality Authority", email = "[email protected]" }, ] -@@ -65,6 +64,9 @@ scripts.pylint-config = "pylint:_run_pylint_config" - scripts.pyreverse = "pylint:run_pyreverse" - scripts.symilar = "pylint:run_symilar" +@@ -105,6 +104,9 @@ test-min = [ + "typing-extensions~=4.15", + ] +[tool.setuptools] +license-files = [ "LICENSE", "CONTRIBUTORS.txt" ]
meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb renamed from meta-python/recipes-devtools/python/python3-pylint_3.3.8.bb +2 -2
@@ -3,8 +3,8 @@ HOMEPAGE = "https://www.pylint.org/" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" -SRCREV = "98942ba4126a6fe1657bad77027bcc11016d16da" -SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https \ +SRCREV = "84b6552b86e210097ac29de7ef64b152efb4a454" +SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https;tag=v${PV} \ file://0001-Adjust-test-expectations-for-ptest.patch \ file://0002-pyproject.toml-Keep-tool.setuptools.license-files.patch \ file://run-ptest \
PATCH 5/9 python3-blinker: Fix ptests with pytest 8.4+
In reply to Khem Rajpytest 8.4 is less forgiving about functions not marked async and using it
--- ...yncio-fixture-to-test_async_receiver.patch | 32 +++++++++++++++++++ .../python/python3-blinker_1.9.0.bb | 4 +++ 2 files changed, 36 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch
meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 2edb837a27ea52ec98d2c72db3534cc764c41337 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 18 Nov 2025 13:06:49 -0800 +Subject: [PATCH] Add asyncio fixture to test_async_receiver + +This ensures that this test executes and passes +with pytest-8.4+ + +pytest now throws errors for such functions [1] +which were skipped in older versions + +[1] https://github.com/pytest-dev/pytest/issues/11372 + +Upstream-Status: Submitted [https://github.com/pallets-eco/blinker/pull/187] +Signed-off-by: Khem Raj <[email protected]> +--- + tests/test_signals.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_signals.py b/tests/test_signals.py +index 93a9c48..da88627 100644 +--- a/tests/test_signals.py ++++ b/tests/test_signals.py +@@ -256,7 +256,7 @@ def test_strong_receiver() -> None: + assert sentinel + assert [id(fn) for fn in sig.receivers.values()] == [fn_id] + +- [email protected] + async def test_async_receiver() -> None: + sentinel = [] +
meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb +4 -0
@@ -2,6 +2,7 @@ DESCRIPTION = "Fast, simple object-to-object and broadcast signaling." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=42cd19c88fc13d1307a4efd64ee90e4e" +SRC_URI += "file://0001-Add-asyncio-fixture-to-test_async_receiver.patch" SRC_URI[sha256sum] = "b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf" inherit pypi python_flit_core ptest-python-pytest
@@ -9,3 +10,6 @@ inherit pypi python_flit_core ptest-python-pytest RDEPENDS:${PN} += "\ python3-asyncio \ " +RDEPENDS:${PN}-ptest += "\ + python3-pytest-asyncio \ +"
PATCH 6/9 python3-typer: Add missing rdeps for ptests
In reply to Khem Raj--- meta-python/recipes-devtools/python/python3-typer_0.20.0.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-python/recipes-devtools/python/python3-typer_0.20.0.bb +3 -0
@@ -23,8 +23,11 @@ RDEPENDS:${PN} += "\ " # python3-misc for webbrowser module RDEPENDS:${PN}-ptest += "\ + python3-coverage \ + python3-markdown-it-py \ python3-misc \ python3-mypy \ + python3-pluggy \ python3-pytest \ python3-pytest-cov \ python3-pytest-sugar \
PATCH 7/9 python3-google-auth: Upgrade to 2.43.0
In reply to Khem RajSkip ptests needing pyopenssl module when its not available
---
...ts-skip-when-pyopenssl-isn-t-availab.patch | 34 +++++++++++++++++++
....40.3.bb => python3-google-auth_2.43.0.bb} | 3 +-
2 files changed, 36 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-google-auth/0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch
rename meta-python/recipes-devtools/python/{python3-google-auth_2.40.3.bb => python3-google-auth_2.43.0.bb} (86%)meta-python/recipes-devtools/python/python3-google-auth/0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 35eea881e1aeb27fc12cfb301e497e72e59e720f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 18 Nov 2025 17:23:09 -0800 +Subject: [PATCH] make the TLS tests skip when pyopenssl isn't available + +In some distributions e.g. yocto +pyOpenSSL is a packageconfig and disabled by default, +and it means pyopenssl.py module is not installed as a result. + +This test fails plainly when it can not find urllib3.contrib.pyopenssl +instead skip the test if it does not find the module. + +Upstream-Status: Submitted [https://github.com/googleapis/google-auth-library-python/pull/1873] +Signed-off-by: Khem Raj <[email protected]> +--- + tests/transport/test__custom_tls_signer.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/tests/transport/test__custom_tls_signer.py b/tests/transport/test__custom_tls_signer.py +index 3a33c2c..6f88ddf 100644 +--- a/tests/transport/test__custom_tls_signer.py ++++ b/tests/transport/test__custom_tls_signer.py +@@ -18,7 +18,10 @@ import os + import mock + import pytest # type: ignore + from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore +-import urllib3.contrib.pyopenssl # type: ignore ++urllib3_pyopenssl = pytest.importorskip( ++ "urllib3.contrib.pyopenssl", ++ reason="urllib3.contrib.pyopenssl not available in this environment", ++) + + from google.auth import exceptions + from google.auth.transport import _custom_tls_signer
meta-python/recipes-devtools/python/python3-google-auth_2.43.0.bb renamed from meta-python/recipes-devtools/python/python3-google-auth_2.40.3.bb +2 -1
@@ -5,10 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" inherit pypi setuptools3 ptest -SRC_URI[sha256sum] = "500c3a29adedeb36ea9cf24b8d10858e152f2412e3ca37829b3fa18e33d63b77" SRC_URI += " \ + file://0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch \ file://run-ptest \ " +SRC_URI[sha256sum] = "88228eee5fc21b62a1b5fe773ca15e67778cb07dc8363adcb4a8827b52d81483" PYPI_PACKAGE = "google_auth" UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
PATCH 8/9 python3-arrow: Add missing rdeps on tzdata pre-commit modules
In reply to Khem RajThese were missing pieces for ptests to work
--- meta-python/recipes-devtools/python/python3-arrow_1.4.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-arrow_1.4.0.bb +2 -0
@@ -14,6 +14,7 @@ inherit pypi python_flit_core ptest-python-pytest RDEPENDS:${PN}-ptest += " \ python3-dateparser \ python3-dateutil-zoneinfo \ + python3-pre-commit \ python3-pytest-cov \ python3-pytest-mock \ python3-pytz \
@@ -23,4 +24,5 @@ RDEPENDS:${PN}-ptest += " \ RDEPENDS:${PN} += " \ python3-dateutil \ + python3-tzdata \ "
PATCH 9/9 Revert "python3-argcomplete: Upgrade 3.6.2 -> 3.6.3"
In reply to Khem RajThis reverts commit 809cb8f42473ea0ead9074f7d699619f66f13c05.
It causes ptest regression in traitlets as seen here [1]
We will have to fix this regression before we upgrade argcomplete module
[1] https://github.com/ipython/traitlets/issues/925
---
...hon3-argcomplete_3.6.3.bb => python3-argcomplete_3.6.2.bb} | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-argcomplete_3.6.3.bb => python3-argcomplete_3.6.2.bb} (78%)meta-python/recipes-devtools/python/python3-argcomplete_3.6.2.bb renamed from meta-python/recipes-devtools/python/python3-argcomplete_3.6.3.bb +3 -1
@@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/kislyuk/argcomplete" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2ee41112a44fe7014dce33e26468ba93" -SRC_URI[sha256sum] = "62e8ed4fd6a45864acc8235409461b72c9a28ee785a2011cc5eb78318786c89c" +SRC_URI[sha256sum] = "d0519b1bc867f5f4f4713c41ad0aba73a4a5f007449716b16f385f2166dc6adf" + +PYPI_PACKAGE = "argcomplete" inherit pypi python_hatchling