Compare commits

1 Commits
main ... 1.1

4 changed files with 26 additions and 55 deletions

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

Binary file not shown.

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

Binary file not shown.

View File

@@ -1,38 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-asgiref
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,32 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-asgiref
Version: 3.8.1
Version: 3.6.0
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.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
BuildRequires: %{python_module typing-extensions > 4}
Requires: python-typing-extensions > 4
%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
%python_subpackages
%description
@@ -46,10 +53,10 @@ read more at https://asgi.readthedocs.io/en/latest/
%setup -q -n asgiref-%{version}
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -58,7 +65,6 @@ read more at https://asgi.readthedocs.io/en/latest/
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/asgiref
%{python_sitelib}/asgiref-%{version}.dist-info
%{python_sitelib}/*
%changelog