meta-openembedded/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch
Wang Mingyu 1406c540cd
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 <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-12 09:16:02 -08:00

33 lines
1.2 KiB
Diff

From d19ad6cc086684ee74db250f5fd35227c98e678a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Thu, 6 Jun 2024 10:29:29 +0200
Subject: [PATCH] Add new thread attributes from Python 3.13
Does not fix https://github.com/eventlet/eventlet/issues/964 yet
Upstream-Status: Backport [https://github.com/eventlet/eventlet/pull/965]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
eventlet/green/thread.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py
index 224cd1c..c70c9e8 100644
--- a/eventlet/green/thread.py
+++ b/eventlet/green/thread.py
@@ -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