From 3490811436ef9d27a32b5a881c494b8f3583d2b2 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Thu, 26 Mar 2026 19:55:59 +0800 Subject: python3-bleak: upgrade 2.1.1 -> 3.0.0 Changelog: ============ - Added adapter attribute to bleak.args.bluez.BlueZClientArgs and bleak.args.bluez.BlueZScannerArgs. - Added bluez keyword argument to BleakClient. - Added new bleak.args.bluez.BlueZClientArgs class. - Added bleak.exc.BleakGATTProtocolError and bleak.exc.BleakGATTProtocolErrorCode classes. - Added type hints and documentation for use_cached kwarg for read_gatt_char() and read_gatt_descriptor() methods in BleakClient. - Added support for "use_cached" kwarg to read_gatt_char() and read_gatt_descriptor() methods in BlueZ backend. - Deprecated adapter keyword argument in BleakScanner and BleakClient. - Changed GATT read and write methods to raise BleakGATTProtocolError when a GATT protocol error occurs. - Changed start/stop scanning on CoreBluetooth so that the isScanning property is not checked anymore. - Changed BleakClient.write_gatt_descriptor() to raise ValueError when attempting to write to the descriptor 0x2902 (Client Characteristic Configuration Descriptor, CCCD). Use start_notify() and stop_notify() instead. - Fixed occasional EOFError when disconnecting in BlueZ backend. - Fixed a potential deadlock when turning off Bluetooth manually while starting scanning on CoreBluetooth. - Fixed reading descriptors 0x2900, 0x2902 and 0x2903 on CoreBluetooth backend. - Fixed cyclic references problem in CoreBluetooth backend causing memory leaks. - Fixed typehint for BleakScanner.__aexit__(). - Removed undocumented/deprecated device keyword argument from BleakScannerBlueZDBus and BleakClientBlueZDBus. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-bleak_2.1.1.bb | 24 ---------------------- .../recipes-devtools/python/python3-bleak_3.0.0.bb | 24 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-bleak_2.1.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-bleak_3.0.0.bb (limited to 'meta-python/recipes-devtools/python') 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 deleted file mode 100644 index 03f2ed062c..0000000000 --- a/meta-python/recipes-devtools/python/python3-bleak_2.1.1.bb +++ /dev/null @@ -1,24 +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 = "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 \ -" diff --git a/meta-python/recipes-devtools/python/python3-bleak_3.0.0.bb b/meta-python/recipes-devtools/python/python3-bleak_3.0.0.bb new file mode 100644 index 0000000000..d4cae1b418 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-bleak_3.0.0.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 = "f137b19257abe27b4700b5ab0f5303a1461f6c70" +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