From 38119992d8cc481d60bb7c0e201156c8c46b51a2 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 7 Jan 2026 18:28:45 +0800 Subject: python3-bleak: upgrade 2.0.0 -> 2.1.1 1. Changelog: https://github.com/hbldh/bleak/blob/v2.1.1/CHANGELOG.rst 2. Skip integration tests in ptest After upgrade to 2.1.1, a new test set integration was added. https://github.com/hbldh/bleak/tree/v2.1.1/tests/integration According to the description, the tests need kernel module hci_vhci, but hci_vhci is disabled in yocto, so skip these tests. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-bleak/run-ptest | 3 +++ .../recipes-devtools/python/python3-bleak_2.0.0.bb | 21 ------------------- .../recipes-devtools/python/python3-bleak_2.1.1.bb | 24 ++++++++++++++++++++++ 3 files changed, 27 insertions(+), 21 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-bleak/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-bleak_2.0.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-bleak_2.1.1.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-bleak/run-ptest b/meta-python/recipes-devtools/python/python3-bleak/run-ptest new file mode 100644 index 0000000000..623fc814c9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-bleak/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh +#Skip integration as it need hci_vhci, but hci_vhci module is not enabled in yocto kernel. +pytest --automake -k "not integration" diff --git a/meta-python/recipes-devtools/python/python3-bleak_2.0.0.bb b/meta-python/recipes-devtools/python/python3-bleak_2.0.0.bb deleted file mode 100644 index 161b21b88c..0000000000 --- a/meta-python/recipes-devtools/python/python3-bleak_2.0.0.bb +++ /dev/null @@ -1,21 +0,0 @@ -SUMMARY = "Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers." -HOMEPAGE = "https://github.com/hbldh/bleak" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" - -SRCREV = "718e5d76cd051910a9d5266266af632c2529c03c" -PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop;destsuffix=${S}" - -inherit pypi python_poetry_core ptest-python-pytest - -RDEPENDS:${PN}-ptest += " \ - python3-asyncio \ - python3-pytest-asyncio \ - python3-pytest-cov \ -" - -RDEPENDS:${PN} += " \ - python3-core (>3.8) \ - python3-dbus-fast \ - python3-xml \ -" diff --git a/meta-python/recipes-devtools/python/python3-bleak_2.1.1.bb b/meta-python/recipes-devtools/python/python3-bleak_2.1.1.bb new file mode 100644 index 0000000000..03f2ed062c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-bleak_2.1.1.bb @@ -0,0 +1,24 @@ +SUMMARY = "Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers." +HOMEPAGE = "https://github.com/hbldh/bleak" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" + +SRCREV = "5d76a62a549a4674c64ee151d38e2339e8ba948a" +PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop;destsuffix=${S};tag=v${PV}" + +SRC_URI:append = " file://run-ptest" + +inherit pypi python_poetry_core ptest-python-pytest + +RDEPENDS:${PN}-ptest += " \ + python3-asyncio \ + python3-pytest-asyncio \ + python3-pytest-cov \ + python3-bumble \ +" + +RDEPENDS:${PN} += " \ + python3-core (>3.8) \ + python3-dbus-fast \ + python3-xml \ +" -- cgit v1.2.3-54-g00ecf