mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
python-eventlet: bump to 0.40.4
Full release notes: https://github.com/eventlet/eventlet/blob/master/NEWS Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
e0ab7d0dfa
commit
3a31ea37bb
@@ -8,11 +8,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-eventlet
|
||||
PKG_VERSION:=0.40.3
|
||||
PKG_VERSION:=0.40.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=eventlet
|
||||
PKG_HASH:=290852db0065d78cec17a821b78c8a51cafb820a792796a354592ae4d5fceeb0
|
||||
PKG_HASH:=69bef712b1be18b4930df6f0c495d2a882bf7b63aa111e7b6eeff461cfcaf26f
|
||||
|
||||
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
20
lang/python/python-eventlet/test.sh
Normal file
20
lang/python/python-eventlet/test.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$1" = python3-eventlet ] || exit 0
|
||||
|
||||
python3 - << 'EOF'
|
||||
import eventlet
|
||||
|
||||
# Test basic green thread spawning
|
||||
results = []
|
||||
|
||||
def worker(n):
|
||||
results.append(n)
|
||||
|
||||
pool = eventlet.GreenPool(size=4)
|
||||
for i in range(4):
|
||||
pool.spawn(worker, i)
|
||||
pool.waitall()
|
||||
|
||||
assert sorted(results) == [0, 1, 2, 3], f"Unexpected results: {results}"
|
||||
EOF
|
||||
Reference in New Issue
Block a user