python-ble2mqtt: update to 0.2.5; add test.sh
authorAlexandru Ardelean <redacted>
Mon, 13 Apr 2026 08:17:57 +0000 (08:17 +0000)
committerAlexandru Ardelean <redacted>
Tue, 14 Apr 2026 07:33:53 +0000 (10:33 +0300)
Bump version 0.2.2 -> 0.2.5.
Add test.sh to verify Device base class import.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-ble2mqtt/Makefile
lang/python/python-ble2mqtt/test.sh [new file with mode: 0644]

index f8610d557e6532d592c0aa328efcf7810d270e7a..7208ffbec19c33f313e73a285d142cd2aa024d72 100644 (file)
@@ -7,11 +7,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-ble2mqtt
-PKG_VERSION:=0.2.2
+PKG_VERSION:=0.2.5
 PKG_RELEASE:=1
 
 PYPI_NAME:=ble2mqtt
-PKG_HASH:=6c8abb4fe3d8ba77e42f23e4acdfbb99e337ed5bdea05db4e1b92d455186c8e6
+PKG_HASH:=b67838a4fccf99b7a00304acb8cf967b01fd9926e3cfd2b2476b21d242cb8384
 
 PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-ble2mqtt/test.sh b/lang/python/python-ble2mqtt/test.sh
new file mode 100644 (file)
index 0000000..247f0a1
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+[ "$1" = python3-ble2mqtt ] || exit 0
+
+python3 - << 'EOF'
+import ble2mqtt
+from ble2mqtt.devices.base import Device, ConnectionMode
+
+assert hasattr(ble2mqtt, "__version__") or True  # version may not be exposed
+assert issubclass(Device, object)
+
+print("python3-ble2mqtt OK")
+EOF
\ No newline at end of file
git clone https://git.99rst.org/PROJECT