From 451fe283c66a3b3967dd0101141cf508cc064aa4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 4 Aug 2026 23:41:38 -0700 Subject: [PATCH] python3-bleak: Use python_uv_build and drop the uv_build upper bound bleak's build backend is uv_build, but the recipe inherited python_poetry_core and then added python3-uv-build-native to DEPENDS by hand. Both classes are thin wrappers over python_pep517 that differ only in the native backend they pull in, and python_pep517 takes the backend from pyproject.toml, so inherit python_uv_build instead and drop the manual DEPENDS along with the unused poetry-core dependency. The patch capped uv_build at <0.12.0, which the 0.11.32 -> 0.12.1 upgrade in oe-core invalidated: ERROR Unmet dependencies (checked against .../nativepython3): uv_build<0.12.0,>=0.10.9 This bound has now broken twice, and there is only ever one uv-build in the sysroot, so drop the upper bound rather than raise it again. Verified on aarch64 for qemuarm64: do_compile fails before the change with the error above and both do_compile and do_package succeed after. Signed-off-by: Khem Raj --- ...leak-Support-newer-uv_build-versions.patch | 23 +++++++++++++++---- .../python/python3-bleak_3.0.2.bb | 6 +---- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/meta-python/recipes-devtools/python/python3-bleak/0001-bleak-Support-newer-uv_build-versions.patch b/meta-python/recipes-devtools/python/python3-bleak/0001-bleak-Support-newer-uv_build-versions.patch index bead8f3be6..043d7887c0 100644 --- a/meta-python/recipes-devtools/python/python3-bleak/0001-bleak-Support-newer-uv_build-versions.patch +++ b/meta-python/recipes-devtools/python/python3-bleak/0001-bleak-Support-newer-uv_build-versions.patch @@ -1,11 +1,26 @@ From 2e0994321b57e547a3c1f7e1f225e55ca007e45f Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 15 Jun 2026 17:53:47 +0300 -Subject: [PATCH] bleak: Support newer uv_build versions +Subject: [PATCH] bleak: Drop the uv_build upper version bound -Support newer uv_build versions +bleak 3.0.2 requires uv_build<0.11.0. OE builds wheels with +"pyproject-build --no-isolation" against whatever python3-uv-build is in +the sysroot, and that check is enforced: -Upstream-Status: Submitted [https://github.com/hbldh/bleak/pull/2001] +| * Getting build dependencies for wheel... +| +| ERROR Missing dependencies: +| uv_build>=0.10.9,<0.11.0 + +Raising the bound just moves the problem to the next uv-build upgrade -- +it has already been hit twice, most recently by the 0.11.32 -> 0.12.1 +upgrade in oe-core. Since there is only ever one uv-build in the +sysroot, drop the upper bound instead. + +Upstream merged a bump to <0.12.0 (https://github.com/hbldh/bleak/pull/2001) +which will be in the next release, but that would need raising again too. + +Upstream-Status: Inappropriate [OE specific] Signed-off-by: Leon Anavi --- @@ -21,7 +36,7 @@ index 3224afc..4be6da7 100644 [build-system] -requires = ["uv_build>=0.10.9,<0.11.0"] -+requires = ["uv_build>=0.10.9,<0.12.0"] ++requires = ["uv_build>=0.10.9"] build-backend = "uv_build" [tool.uv.build-backend] diff --git a/meta-python/recipes-devtools/python/python3-bleak_3.0.2.bb b/meta-python/recipes-devtools/python/python3-bleak_3.0.2.bb index c84b6bbc8d..022582e0e9 100644 --- a/meta-python/recipes-devtools/python/python3-bleak_3.0.2.bb +++ b/meta-python/recipes-devtools/python/python3-bleak_3.0.2.bb @@ -8,14 +8,10 @@ SRC_URI:append = " \ file://0001-bleak-Support-newer-uv_build-versions.patch \ " -inherit pypi python_poetry_core ptest-python-pytest +inherit pypi python_uv_build ptest-python-pytest SRC_URI[sha256sum] = "c2229cb8238d5876b4bd05c74bf7a1aea1f88da39d2e51ac9dfd5cc319d5265f" -DEPENDS += "\ - python3-uv-build-native \ -" - RDEPENDS:${PN}-ptest += " \ python3-asyncio \ python3-pytest-asyncio \