python-greenlet: bump to 3.3.2
authorAlexandru Ardelean <redacted>
Fri, 20 Mar 2026 16:39:24 +0000 (16:39 +0000)
committerAlexandru Ardelean <redacted>
Sat, 21 Mar 2026 05:47:09 +0000 (07:47 +0200)
Changelog since 3.3.1:
- v3.3.2: Fix crash on Python 3.10 during interpreter shutdown with
  active greenlets

Add test.sh.

Full changelog:
https://github.com/python-greenlet/greenlet/releases

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

index 220616270aa4f3e95f7cb4993952ff176cd6bf29..bed3ad89c97750df95a923c999300751b5bbd82f 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-greenlet
-PKG_VERSION:=3.3.1
+PKG_VERSION:=3.3.2
 PKG_RELEASE:=1
 
 PYPI_NAME:=greenlet
-PKG_HASH:=41848f3230b58c08bb43dee542e74a2a2e34d3c59dc3076cec9151aeeedcae98
+PKG_HASH:=2eaf067fc6d886931c7962e8c6bede15d2f01965560f3359b27c80bde2d151f2
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-greenlet/test.sh b/lang/python/python-greenlet/test.sh
new file mode 100644 (file)
index 0000000..9b24e0c
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+[ "$1" = python3-greenlet ] || exit 0
+
+python3 - <<'EOF'
+import greenlet
+
+results = []
+
+def consumer():
+    while True:
+        value = greenlet.getcurrent().parent.switch()
+        if value is None:
+            break
+        results.append(value * 2)
+
+c = greenlet.greenlet(consumer)
+c.switch()  # start consumer, runs until first switch back
+
+for i in [1, 2, 3]:
+    c.switch(i)
+c.switch(None)  # signal done
+
+assert results == [2, 4, 6], f"Expected [2, 4, 6], got {results}"
+EOF
git clone https://git.99rst.org/PROJECT