From 59860fd8c2f2e413b1a88a11f395c8fbc0a2fdfb78423dc5e74de465fea51af7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 29 Nov 2023 13:05:52 +0000 Subject: [PATCH 1/2] - update to 3.7.2: * The type annotations for SyncToAsync and AsyncToSync have been changed to more accurately reflect the kind of callables they return. * On Python 3.10 and below, the version of the "typing_extensions" package is now constrained to be at least version 4 (as we depend on functionality in that version and above) * Contextvars are now required for the implementation of `sync` as Python 3.6 is now no longer a supported version. * sync_to_async and async_to_sync now pass-through * Debug and Lifespan State extensions have resulted in a typing change for some request and response types. This change should be backwards-compatible. * ``asgiref`` frames will now be hidden in Django tracebacks by default. * Raw performance and garbage collection improvements in Local, SyncToAsync, and AsyncToSync. application startup. * Fixed pytest_asyncio deprecation warning. * Rewrote multiprocessing test to use no local functions * Remove SOCK_NONBLOCK from socket creation on tests is set * contextvars are now persisted through AsyncToSync OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asgiref?expand=0&rev=18 --- asgiref-3.6.0.tar.gz | 3 --- asgiref-3.7.2.tar.gz | 3 +++ python-asgiref.changes | 33 +++++++++++++++++++++++++++------ python-asgiref.spec | 24 +++++++++--------------- 4 files changed, 39 insertions(+), 24 deletions(-) delete mode 100644 asgiref-3.6.0.tar.gz create mode 100644 asgiref-3.7.2.tar.gz diff --git a/asgiref-3.6.0.tar.gz b/asgiref-3.6.0.tar.gz deleted file mode 100644 index 3fc4dad..0000000 --- a/asgiref-3.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9567dfe7bd8d3c8c892227827c41cce860b368104c3431da67a0c5a65a949506 -size 32748 diff --git a/asgiref-3.7.2.tar.gz b/asgiref-3.7.2.tar.gz new file mode 100644 index 0000000..72e0c63 --- /dev/null +++ b/asgiref-3.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e0ce3aa93a819ba5b45120216b23878cf6e8525eb3848653452b4192b92afed +size 33393 diff --git a/python-asgiref.changes b/python-asgiref.changes index 4f6dc0d..77acf86 100644 --- a/python-asgiref.changes +++ b/python-asgiref.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Wed Nov 29 13:04:33 UTC 2023 - Dirk Müller + +- update to 3.7.2: + * The type annotations for SyncToAsync and AsyncToSync have been + changed to more accurately reflect the kind of callables they + return. + * On Python 3.10 and below, the version of the "typing_extensions" + package is now constrained to be at least version 4 (as we depend + on functionality in that version and above) + * Contextvars are now required for the implementation of `sync` + as Python 3.6 is now no longer a supported version. + * sync_to_async and async_to_sync now pass-through + * Debug and Lifespan State extensions have resulted in a typing + change for some request and response types. This change should + be backwards-compatible. + * ``asgiref`` frames will now be hidden in Django tracebacks + by default. + * Raw performance and garbage collection improvements in Local, + SyncToAsync, and AsyncToSync. + ------------------------------------------------------------------- Fri Apr 21 12:22:02 UTC 2023 - Dirk Müller @@ -30,7 +51,7 @@ Sat Jan 7 09:11:28 UTC 2023 - Dirk Müller 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. + application startup. ------------------------------------------------------------------- Sat Jun 4 15:28:14 UTC 2022 - Dirk Müller @@ -41,12 +62,12 @@ Sat Jun 4 15:28:14 UTC 2022 - Dirk Müller * Improved docs - Starlette supports WebSockets * Use get_event_loop in class-level code * Changed how StatelessServer handles event loops - * Fixed pytest_asyncio deprecation warning. + * Fixed pytest_asyncio deprecation warning. * Drop python 3.6, add python 3.10 * Fix allowed values for spec_version - * Rewrote multiprocessing test to use no local functions + * Rewrote multiprocessing test to use no local functions * Fixed a typographical error - * Remove SOCK_NONBLOCK from socket creation on tests + * Remove SOCK_NONBLOCK from socket creation on tests * Preserve CurrentThreadExecutor across create_task * Don't warn 'non-async-marked callable' for async callable instance * Disallow async callable class instances as callable @@ -108,7 +129,7 @@ Thu Jan 14 04:31:06 UTC 2021 - Steve Kowalik * sync_to_async now defaults to thread-sensitive mode being on * async_to_sync now works inside of forked processes * WsgiToAsgi now correctly clamps its response body when Content-Length - is set + is set ------------------------------------------------------------------- Wed Jul 1 04:59:38 UTC 2020 - Steve Kowalik @@ -118,7 +139,7 @@ Wed Jul 1 04:59:38 UTC 2020 - Steve Kowalik * Fixed regression with exception handling in 3.2.8 related to the contextvars fix. * Fixed small memory leak in local.Local - * contextvars are now persisted through AsyncToSync + * contextvars are now persisted through AsyncToSync ------------------------------------------------------------------- Fri Apr 24 06:47:42 UTC 2020 - Tomáš Chvátal diff --git a/python-asgiref.spec b/python-asgiref.spec index dd9bf66..a7d21b3 100644 --- a/python-asgiref.spec +++ b/python-asgiref.spec @@ -16,11 +16,9 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-asgiref -Version: 3.6.0 +Version: 3.7.2 Release: 0 Summary: ASGI specs, helper code, and adapters License: BSD-3-Clause @@ -28,20 +26,15 @@ Group: Development/Languages/Python URL: https://github.com/django/asgiref/ Source: https://files.pythonhosted.org/packages/source/a/asgiref/asgiref-%{version}.tar.gz BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch -%if %{?suse_version} < 1540 -BuildRequires: %{python_module typing_extensions} -%else -BuildRequires: %{python_module typing_extensions if %python-base < 3.8} -%endif -%if 0%{python_version_nodots} < 38 -Requires: python-typing_extensions -%endif +BuildRequires: %{python_module typing-extensions} +Requires: python-typing-extensions %python_subpackages %description @@ -53,10 +46,10 @@ read more at https://asgi.readthedocs.io/en/latest/ %setup -q -n asgiref-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,6 +58,7 @@ read more at https://asgi.readthedocs.io/en/latest/ %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/asgiref +%{python_sitelib}/asgiref-%{version}.dist-info %changelog From d35407fdcbbdb64217590581005b61df690dc1e1bb1b2ea628f710cff3cacf37 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 29 Nov 2023 13:06:30 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asgiref?expand=0&rev=19 --- python-asgiref.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-asgiref.spec b/python-asgiref.spec index a7d21b3..4098415 100644 --- a/python-asgiref.spec +++ b/python-asgiref.spec @@ -25,7 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/django/asgiref/ Source: https://files.pythonhosted.org/packages/source/a/asgiref/asgiref-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} @@ -33,8 +33,8 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch -BuildRequires: %{python_module typing-extensions} -Requires: python-typing-extensions +BuildRequires: %{python_module typing-extensions > 4} +Requires: python-typing-extensions > 4 %python_subpackages %description