From cb26b94f387d09372000eee773fbbd5c364b95de Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 27 Dec 2022 14:38:18 +0800 Subject: python3-asgiref: upgrade 3.5.2 -> 3.6.0 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 Signed-off-by: Khem Raj --- .../python/python3-asgiref_3.5.2.bb | 29 ---------------------- .../python/python3-asgiref_3.6.0.bb | 29 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb b/meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb deleted file mode 100644 index 8604791992..0000000000 --- a/meta-python/recipes-devtools/python/python3-asgiref_3.5.2.bb +++ /dev/null @@ -1,29 +0,0 @@ -DESCRIPTION = "ASGI is a standard for Python asynchronous web apps and servers to communicate with each other, and positioned as an asynchronous successor to WSGI." -HOMEPAGE = "https://pypi.org/project/asgiref/" -SECTION = "devel/python" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa" - -SRC_URI += "file://run-ptest \ - " - -SRC_URI[sha256sum] = "4a29362a6acebe09bf1d6640db38c1dc3d9217c68e6f9f6204d72667fc19a424" - -export BUILD_SYS -export HOST_SYS - -inherit pypi ptest setuptools3 - -RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-asyncio \ - ${PYTHON_PN}-io \ - ${PYTHON_PN}-multiprocessing \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb b/meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb new file mode 100644 index 0000000000..ac3353ce02 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-asgiref_3.6.0.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "ASGI is a standard for Python asynchronous web apps and servers to communicate with each other, and positioned as an asynchronous successor to WSGI." +HOMEPAGE = "https://pypi.org/project/asgiref/" +SECTION = "devel/python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa" + +SRC_URI += "file://run-ptest \ + " + +SRC_URI[sha256sum] = "9567dfe7bd8d3c8c892227827c41cce860b368104c3431da67a0c5a65a949506" + +export BUILD_SYS +export HOST_SYS + +inherit pypi ptest setuptools3 + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-asyncio \ + ${PYTHON_PN}-io \ + ${PYTHON_PN}-multiprocessing \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf