python-greenlet: bump to 3.3.2

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 <alex@shruggie.ro>
(cherry picked from commit 79fe85b9e3)
This commit is contained in:
Alexandru Ardelean
2026-03-20 16:39:24 +00:00
committed by Alexandru Ardelean
parent e263702a5e
commit 435b41ff10
2 changed files with 28 additions and 3 deletions

View File

@@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=python-greenlet
PKG_VERSION:=3.2.4
PKG_VERSION:=3.3.2
PKG_RELEASE:=1
PYPI_NAME:=greenlet
PKG_HASH:=0dca0d95ff849f9a364385f36ab49f50065d76964944638be9691e1832e9f86d
PKG_HASH:=2eaf067fc6d886931c7962e8c6bede15d2f01965560f3359b27c80bde2d151f2
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
# FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away

View File

@@ -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