From 1406c540cd3a25a7dc72fc06556be790bbbc353c Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 10 Feb 2025 17:01:04 +0800 Subject: python3-eventlet: upgrade 0.37.0 -> 0.39.0 d19ad6cc086684ee74db250f5fd35227c98e678a.patch refreshed for 0.39.0 Changelog: ============ * Remove monotonic from requirements * wsgi: Clean up some override logic * Correct line lookup from inspect.getsourcelines() * Drop support of Python 3.7 * Calling eventlet.sleep(0) isn't really blocking, so don't blow up * fix the monkey patching with the asyncio hub * introduce the unmonkeypatching feature * Python 3.13: Use greenthread's dead state where possible * bump github Actions * Fix bug where asyncio hub didn't support multiple os threads * Python 3.13 Support * wsgi: server MUST NOT send Content-Length/Transfer-Encoding header in response with a status code of 1xx, 204 or (2xx to CONNECT request) * wsgi: No request Content-Length nor Transfer-Encoding implies no body Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../d19ad6cc086684ee74db250f5fd35227c98e678a.patch | 13 +++++++++---- .../recipes-devtools/python/python3-eventlet_0.37.0.bb | 18 ------------------ .../recipes-devtools/python/python3-eventlet_0.39.0.bb | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 22 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-eventlet_0.39.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch b/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch index f8a268309a..fd0fc91d25 100644 --- a/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch +++ b/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch @@ -11,17 +11,22 @@ Signed-off-by: Khem Raj 1 file changed, 7 insertions(+) diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py -index 053a1c3c6..384b3c290 100644 +index 224cd1c..c70c9e8 100644 --- a/eventlet/green/thread.py +++ b/eventlet/green/thread.py -@@ -118,3 +118,10 @@ def stack_size(size=None): - +@@ -174,5 +174,12 @@ from eventlet.corolocal import local as _local if hasattr(__thread, 'daemon_threads_allowed'): daemon_threads_allowed = __thread.daemon_threads_allowed -+ + +if hasattr(__thread, 'start_joinable_thread'): + start_joinable_thread = __thread.start_joinable_thread + _shutdown = __thread._shutdown + _make_thread_handle = __thread._make_thread_handle + _ThreadHandle = __thread._ThreadHandle + _get_main_thread_ident = __thread._get_main_thread_ident ++ + if hasattr(__thread, '_shutdown'): + _shutdown = __thread._shutdown +-- +2.43.0 + diff --git a/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb b/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb deleted file mode 100644 index df23162e05..0000000000 --- a/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb +++ /dev/null @@ -1,18 +0,0 @@ -DESCRIPTION = "Highly concurrent networking library" -HOMEPAGE = "http://pypi.python.org/pypi/eventlet" -SECTION = "devel/python" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778" - -SRC_URI += "file://d19ad6cc086684ee74db250f5fd35227c98e678a.patch" -SRC_URI[sha256sum] = "fa49bf5a549cdbaa06919679979ea022ac8f8f3cf0499f26849a1cd8e64c30b1" - -inherit pypi python_hatchling - -DEPENDS += "python3-hatch-vcs-native" - -RDEPENDS:${PN} += " \ - python3-dnspython \ - python3-six \ - python3-greenlet \ -" diff --git a/meta-python/recipes-devtools/python/python3-eventlet_0.39.0.bb b/meta-python/recipes-devtools/python/python3-eventlet_0.39.0.bb new file mode 100644 index 0000000000..99f11b104f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-eventlet_0.39.0.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "Highly concurrent networking library" +HOMEPAGE = "http://pypi.python.org/pypi/eventlet" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778" + +SRC_URI += "file://d19ad6cc086684ee74db250f5fd35227c98e678a.patch" +SRC_URI[sha256sum] = "01ba0aa6ee2452690fc02b274a2409598a13b997c7b5af9dc66600fa42015a79" + +inherit pypi python_hatchling + +DEPENDS += "python3-hatch-vcs-native" + +RDEPENDS:${PN} += " \ + python3-dnspython \ + python3-six \ + python3-greenlet \ +" -- cgit v1.2.3-54-g00ecf