mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
mpremote: update to 1.28.0
Update from 1.27.0 to 1.28.0, tracking the MicroPython 1.28.0 release. Add version check to test.sh using importlib.metadata to verify the installed package version matches the expected version string. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
9e6e25cbc4
commit
7f248a74ca
@@ -8,11 +8,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mpremote
|
||||
PKG_VERSION:=1.27.0
|
||||
PKG_VERSION:=1.28.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=mpremote
|
||||
PKG_HASH:=6bb75774648091dad6833af4f86c5bf6505f8d7aec211380f9e6996c01d23cb5
|
||||
PKG_HASH:=fdb5626be83dff4e53c0184f8950814cb519b524dba7f1f8b1668aa477257a31
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
@@ -2,10 +2,15 @@
|
||||
|
||||
[ "$1" = mpremote ] || exit 0
|
||||
|
||||
python3 - <<'EOF'
|
||||
python3 - "$2" <<'EOF'
|
||||
import sys
|
||||
import mpremote
|
||||
from mpremote import main
|
||||
from mpremote.transport_serial import SerialTransport
|
||||
import importlib.metadata
|
||||
|
||||
print("mpremote OK")
|
||||
version = sys.argv[1]
|
||||
installed = importlib.metadata.version("mpremote")
|
||||
assert installed == version, f"version mismatch: {installed!r} != {version!r}"
|
||||
print(f"mpremote {installed} OK")
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user