python-pycrate: update to 0.7.11; add test.sh
authorAlexandru Ardelean <redacted>
Mon, 13 Apr 2026 07:40:09 +0000 (07:40 +0000)
committerAlexandru Ardelean <redacted>
Tue, 14 Apr 2026 05:00:30 +0000 (08:00 +0300)
Bump version 0.6.0 -> 0.7.11.
Add test.sh to verify Envelope/Sequence element construction and value access.

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

index 5717cf74f2962951cf1e0059f87528a0cbb56c46..a8d07624342dbf501e2860c28e320427c090e001 100644 (file)
@@ -4,11 +4,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pycrate
-PKG_VERSION:=0.6.0
+PKG_VERSION:=0.7.11
 PKG_RELEASE:=1
 
 PYPI_NAME:=pycrate
-PKG_HASH:=b49738c02a3f93ba9f76c0dac82b689a5341882814b36c714e9600e9f560daf7
+PKG_HASH:=23dc1c19b148a17637fea73166b801c767ae738cc4cb3d8b1f74a29e469d7c02
 
 PKG_LICENSE:=LGPL-2.1-or-later
 PKG_LICENSE_FILES:=license.txt
diff --git a/lang/python/python-pycrate/test.sh b/lang/python/python-pycrate/test.sh
new file mode 100644 (file)
index 0000000..98a5369
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+[ "$1" = python3-pycrate ] || exit 0
+
+python3 - << 'EOF'
+from pycrate_core.elt import Envelope, Sequence
+from pycrate_core.base import Uint8, Uint16
+
+class Msg(Envelope):
+    _GEN = (
+        Uint8("Type"),
+        Uint16("Length"),
+    )
+
+m = Msg()
+m["Type"].set_val(1)
+m["Length"].set_val(42)
+assert m["Type"].get_val() == 1
+assert m["Length"].get_val() == 42
+
+print("python3-pycrate OK")
+EOF
\ No newline at end of file
git clone https://git.99rst.org/PROJECT