python3-anyio: Add missing runtime dependency on typing-extensions
PATCH 1/5 python3-anyio: Add missing runtime dependency on typing-extensions
anyio 4.15 imports typing_extensions on python < 3.15, so importing anyio on target fails with ModuleNotFoundError. This broke the a2wsgi, pytest-httpx and uvicorn ptests.
--- meta-python/recipes-devtools/python/python3-anyio_4.15.1.bb | 1 + 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-anyio_4.15.1.bb +1 -0
@@ -24,4 +24,5 @@ RDEPENDS:${PN} += "\ python3-numbers \ python3-io \ python3-asyncio \ + python3-typing-extensions \ "
PATCH 2/5 python3-filelock: Install docs/how-to.rst for ptests
test_documented_cache_lock_name reads docs/how-to.rst relative to the tests dir and fails with FileNotFoundError when it is not installed.
--- meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb +2 -0
@@ -40,4 +40,6 @@ RDEPENDS:${PN}-ptest += " \ do_install_ptest:append() { cp -rf ${S}/tasks ${D}${PTEST_PATH}/ cp -f ${S}/pyproject.toml ${D}${PTEST_PATH}/ + # test_documented_cache_lock_name checks snippets in docs/how-to.rst + install -Dm 0644 ${S}/docs/how-to.rst ${D}${PTEST_PATH}/docs/how-to.rst }
PATCH 3/5 python3-pandas: Add missing runtime dependency on python3-zoneinfo
In reply to Khem Rajpandas 3 imports zoneinfo, so without it "import pandas" fails with ModuleNotFoundError, and later imports in the same interpreter fail on the partially initialized module.
--- meta-python/recipes-devtools/python/python3-pandas_3.0.6.bb | 1 + 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pandas_3.0.6.bb +1 -0
@@ -29,6 +29,7 @@ RDEPENDS:${PN} += " \ python3-dateutil-zoneinfo \ python3-pytz \ python3-profile \ + python3-zoneinfo \ " PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:"
PATCH 4/5 python3-fsspec: Fix runtime dependencies and install conftest for ptests
In reply to Khem Rajfsspec imports ctypes, asyncio, json, logging and threading, which are not in python3-core, without ctypes "import fsspec" fails, which also broke the python3-pyyaml-include ptests.
Install the top-level fsspec/conftest.py into the ptest dir, it provides the "m" fixture and the autouse instance cache cleaner, and without it most tests error out or fail.
--- .../python/python3-fsspec_2026.9.0.bb | 11 +++++++++++ 1 file changed, 11 insertions(+)
meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb +11 -0
@@ -10,6 +10,14 @@ inherit python_hatchling ptest-python-pytest DEPENDS = "python3-hatch-vcs-native python3-hatchling-native" +RDEPENDS:${PN} += "\ + python3-asyncio \ + python3-ctypes \ + python3-json \ + python3-logging \ + python3-threading \ +" + RDEPENDS:${PN}-ptest += "\ python3-pytest \ python3-pytest-mock \
@@ -28,6 +36,9 @@ do_install_ptest:append() { cp -rf ${S}/fsspec/tests/* ${D}${PTEST_PATH}/tests/ cp -rf ${S}/fsspec/implementations/tests ${D}${PTEST_PATH}/implementations/ touch ${D}${PTEST_PATH}/implementations/__init__.py + # Top-level conftest provides shared fixtures such as "m" and the + # autouse instance cache cleaner + install -m 0644 ${S}/fsspec/conftest.py ${D}${PTEST_PATH}/ # Tests import helpers via fsspec.tests / fsspec.implementations.tests, # which aren't in the installed package grep -rlE 'fsspec\.(implementations\.)?tests' ${D}${PTEST_PATH} \
PATCH 5/5 python3-breathe: Fix ptests with docutils 0.23 and doxygen 1.18
In reply to Khem Rajdocutils 0.23 serializes boolean attributes as "1"/"0" rather than "True"/"False", which made almost every test_examples case fail; add a patch that normalizes the value when comparing.
The class, cpp_function, group and headings examples compare against models generated with doxygen 1.9.x and do not match doxygen 1.18 output, so deselect them in a custom run-ptest.
AI-Generated: Uses Claude Code
--- ...utils-0.23-boolean-attribute-seriali.patch | 36 +++++++++++++++++++ .../python3-breathe/python3-breathe/run-ptest | 10 ++++++ .../python3-breathe/python3-breathe_5.1.0.bb | 4 +++ 3 files changed, 50 insertions(+) create mode 100644 meta-python/recipes-devtools/python3-breathe/python3-breathe/0001-tests-accept-docutils-0.23-boolean-attribute-seriali.patch create mode 100755 meta-python/recipes-devtools/python3-breathe/python3-breathe/run-ptest
meta-python/recipes-devtools/python3-breathe/python3-breathe/0001-tests-accept-docutils-0.23-boolean-attribute-seriali.patch new file +36 -0
@@ -0,0 +1,36 @@ +From: Khem Raj <[email protected]> +Subject: [PATCH] tests: accept docutils 0.23 boolean attribute serialization + +docutils 0.23 serializes boolean node attributes as "1"/"0" in its +pseudo-XML output instead of "True"/"False", which makes every +test_examples comparison fail against the bundled compare.xml models. +Normalize the generated value before comparing. + +Upstream-Status: Pending + +AI-Generated: Uses Claude Code +Signed-off-by: Khem Raj <[email protected]> +--- +diff --git a/tests/test_examples.py b/tests/test_examples.py +index c256d83..20a9d3e 100644 +--- a/tests/test_examples.py ++++ b/tests/test_examples.py +@@ -150,10 +150,18 @@ def str_to_set(x): + return frozenset(x.split()) + + ++# docutils >= 0.23 serializes boolean attributes as "1"/"0" instead of ++# "True"/"False" ++BOOL_ATTR_VALUES = {"1": "True", "0": "False"} ++ ++ + def attr_compare(name, actual, expected): + if name == "classes": + return str_to_set(actual) >= str_to_set(expected) + ++ if expected in ("True", "False"): ++ actual = BOOL_ATTR_VALUES.get(actual, actual) ++ + return actual == expected + +
meta-python/recipes-devtools/python3-breathe/python3-breathe/run-ptest new file +10 -0
@@ -0,0 +1,10 @@ +#!/bin/sh + +# These examples compare against XML models generated with doxygen 1.9.x; +# doxygen 1.18 renders group titles, markdown headings, function pointer +# members and member ordering differently +pytest --automake \ + --deselect "tests/test_examples.py::test_example[class]" \ + --deselect "tests/test_examples.py::test_example[cpp_function]" \ + --deselect "tests/test_examples.py::test_example[group]" \ + --deselect "tests/test_examples.py::test_example[headings]"
meta-python/recipes-devtools/python3-breathe/python3-breathe_5.1.0.bb +4 -0
@@ -6,6 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=9e49eecf36fc015de7c61a0247df75d6" SRC_URI[sha256sum] = "ff56af8bfd0b50ebf10c81a07b8a5739787eb015d26b4ba162b6983d6e17c7c3" +SRC_URI += "file://0001-tests-accept-docutils-0.23-boolean-attribute-seriali.patch \ + file://run-ptest \ + " + inherit pypi python_flit_core ptest ptest-python-pytest RDEPENDS:${PN} = "python3-sphinx"