diff mbox series

[meta-python] python3-asgiref: upgrade 3.5.2 -> 3.6.0

Message ID 1672123098-31844-5-git-send-email-wangmy@fujitsu.com
State Under Review
Headers show
Series [meta-python] python3-asgiref: upgrade 3.5.2 -> 3.6.0 | expand

Commit Message

Mingyu Wang (Fujitsu) Dec. 27, 2022, 6:38 a.m. UTC
From: Wang Mingyu <wangmy@fujitsu.com>

Changelog:
===========
* Two new functions are added to the "asgiref.sync" module: "iscoroutinefunction()"
  and "markcoroutinefunction()".

  Python 3.12 deprecates "asyncio.iscoroutinefunction()" as an alias for
  "inspect.iscoroutinefunction()", whilst also removing the "_is_coroutine" marker.
  The latter is replaced with the "inspect.markcoroutinefunction" decorator.

  The new "asgiref.sync" functions are compatibility shims for these
  functions that can be used until Python 3.12 is the minimum supported
  version.

  **Note** that these functions are considered **beta**, and as such, whilst
  not likely, are subject to change in a point release, until the final release
  of Python 3.12. They are included in "asgiref" now so that they can be
  adopted by Django 4.2, in preparation for support of Python 3.12.

* The "loop" argument to "asgiref.timeout.timeout" is deprecated. As per other
  "asyncio" based APIs, the running event loop is used by default. Note that
  "asyncio" provides timeout utilities from Python 3.11, and these should be
  preferred where available.

* Support for the "ASGI_THREADS" environment variable, used by
  "SyncToAsync", is removed. In general, a running event-loop is not
  available to `asgiref` at import time, and so the default thread pool
  executor cannot be configured. Protocol servers, or applications, should set
  the default executor as required when configuring the event loop at
  application startup.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../{python3-asgiref_3.5.2.bb => python3-asgiref_3.6.0.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-asgiref_3.5.2.bb => python3-asgiref_3.6.0.bb} (89%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb b/meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb
similarity index 89%
rename from meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb
rename to meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb
index 860479199..ac3353ce0 100644
--- a/meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb
+++ b/meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb
@@ -7,7 +7,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa"
 SRC_URI += "file://run-ptest \
 	    "
 
-SRC_URI[sha256sum] = "4a29362a6acebe09bf1d6640db38c1dc3d9217c68e6f9f6204d72667fc19a424"
+SRC_URI[sha256sum] = "9567dfe7bd8d3c8c892227827c41cce860b368104c3431da67a0c5a65a949506"
 
 export BUILD_SYS
 export HOST_SYS