Sync from SUSE:SLFO:Main python-asgiref revision 7e2dd4a973b970067cb9412fc1a6e7fa

This commit is contained in:
Adrian Schröter 2024-12-13 11:10:22 +01:00
parent 9795d25d78
commit 7dc98abc42
4 changed files with 55 additions and 26 deletions

BIN
asgiref-3.6.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
asgiref-3.8.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Sun Apr 7 08:43:16 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.8.1:
* Fixes a regression in 3.8.0 affecting nested task cancellation
inside sync_to_async.
* Adds support for Python 3.12.
* Drops support for (end-of-life) Python 3.7.
* Fixes task cancellation propagation to subtasks when using
synchronous Django middleware.
* Allows nesting ``sync_to_async`` via ``asyncio.wait_for``.
* Corrects WSGI adapter handling of root path.
* Handles case where `"client"` is ``None`` in WsgiToAsgi adapter.
-------------------------------------------------------------------
Wed Nov 29 13:04:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
@ -30,7 +65,7 @@ Sat Jan 7 09:11:28 UTC 2023 - Dirk Müller <dmueller@suse.com>
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 <dmueller@suse.com>
@ -41,12 +76,12 @@ Sat Jun 4 15:28:14 UTC 2022 - Dirk Müller <dmueller@suse.com>
* 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 +143,7 @@ Thu Jan 14 04:31:06 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
* 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 <steven.kowalik@suse.com>
@ -118,7 +153,7 @@ Wed Jul 1 04:59:38 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
* 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 <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-asgiref
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,32 +16,25 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-asgiref
Version: 3.6.0
Version: 3.8.1
Release: 0
Summary: ASGI specs, helper code, and adapters
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}
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 > 4}
Requires: python-typing-extensions > 4
%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