python-trio: update to 0.33.0; add test.sh
authorAlexandru Ardelean <redacted>
Mon, 13 Apr 2026 08:19:04 +0000 (08:19 +0000)
committerAlexandru Ardelean <redacted>
Thu, 16 Apr 2026 04:08:59 +0000 (07:08 +0300)
Bump version 0.22.2 -> 0.33.0.
Add python3-ctypes, python3-logging, python3-openssl to DEPENDS
(required by the new version).
Add test.sh to verify nursery-based concurrent task execution.

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

index d90f1b8f85043d0dd5ecafcf55f22a3dc4ddd52f..2efb7a963eed8018559c2a9385d3120288923073 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-trio
-PKG_VERSION:=0.22.2
+PKG_VERSION:=0.33.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=trio
-PKG_HASH:=3887cf18c8bcc894433420305468388dac76932e9668afa1c49aa3806b6accb3
+PKG_HASH:=a29b92b73f09d4b48ed249acd91073281a7f1063f09caba5dc70465b5c7aa970
 
 PKG_LICENSE:=Apache-2.0 MIT
 PKG_LICENSE_FILES:=LICENSE.APACHE2 LICENSE.MIT
@@ -31,7 +31,10 @@ define Package/python3-trio
   DEPENDS:= \
     +python3-light \
     +python3-attrs \
+    +python3-ctypes \
     +python3-idna \
+    +python3-logging \
+    +python3-openssl \
     +python3-outcome \
     +python3-sniffio \
     +python3-sortedcontainers
diff --git a/lang/python/python-trio/test.sh b/lang/python/python-trio/test.sh
new file mode 100644 (file)
index 0000000..5a3c68b
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+[ "$1" = python3-trio ] || exit 0
+
+python3 - << 'EOF'
+import trio
+
+results = []
+
+async def worker(n):
+    await trio.sleep(0)
+    results.append(n)
+
+async def main():
+    async with trio.open_nursery() as nursery:
+        for i in range(3):
+            nursery.start_soon(worker, i)
+
+trio.run(main)
+assert sorted(results) == [0, 1, 2], f"Expected [0,1,2], got {results}"
+
+print("python3-trio OK")
+EOF
\ No newline at end of file
git clone https://git.99rst.org/PROJECT