python3-asgiref: Upgrade 3.11.1 -> 3.12.1

Upgrade to release 3.12.1:

- Restored the previous SyncToAsync.__call__ internal code shape,
  which was relied on by some APM services.

From 3.12.0:

- AsyncToSync no longer captures the running event loop on
  instantiation
- Fixed an event loop deadlock when exiting ThreadSensitiveContext
  while its executor thread was still blocked waiting on the event
  loop.
- Dropped support for EOL Python 3.9.
- Fixed StatelessServer.run() failing on Python 3.14, where
  asyncio.get_event_loop() no longer creates an event loop if none
  exists. It now uses asyncio.run().
- Fixed Local leaking data between unrelated sync threads when
  sys.flags.thread_inherit_context is enabled (Python 3.14+), so a
  newly started thread inherits a copy of the spawning thread's
  context. This flag is on by default on free-threaded builds and
  opt-in on the regular GIL build. Local storage is now tagged with
  its owning thread and re-homed only when asgiref intentionally
  moves work across threads (in async_to_sync / sync_to_async),
  restoring the documented thread-local behaviour in sync threads.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Leon Anavi
2026-07-15 12:36:02 +03:00
committed by Khem Raj
parent 76f3ce3f9e
commit 003db9b546
@@ -4,7 +4,7 @@ SECTION = "devel/python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa"
SRC_URI[sha256sum] = "5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce"
SRC_URI[sha256sum] = "59dcb51c272ad209d59bed5708a64a333083e86017d7fcdd67498eeab7784340"
export BUILD_SYS
export HOST_SYS