mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump version 0.2.2 -> 0.2.5. Add test.sh to verify Device base class import. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
13 lines
288 B
Bash
13 lines
288 B
Bash
#!/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 |