From: Alexandru Ardelean Date: Mon, 13 Apr 2026 08:17:57 +0000 (+0000) Subject: python-ble2mqtt: update to 0.2.5; add test.sh X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7a428552dd73f90460c05c2cadda1db63233932b;p=openwrt-packages.git python-ble2mqtt: update to 0.2.5; add test.sh Bump version 0.2.2 -> 0.2.5. Add test.sh to verify Device base class import. Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/python-ble2mqtt/Makefile b/lang/python/python-ble2mqtt/Makefile index f8610d557..7208ffbec 100644 --- a/lang/python/python-ble2mqtt/Makefile +++ b/lang/python/python-ble2mqtt/Makefile @@ -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 PKG_LICENSE:=MIT diff --git a/lang/python/python-ble2mqtt/test.sh b/lang/python/python-ble2mqtt/test.sh new file mode 100644 index 000000000..247f0a1c1 --- /dev/null +++ b/lang/python/python-ble2mqtt/test.sh @@ -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