From 86fdb6829d819b171e23ec6f6a58f6157cfba7717e32df0a8bf379c308d13d99 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 5 May 2021 18:01:08 +0000 Subject: [PATCH] Accepting request 890796 from home:bnavigator:branches:devel:languages:python - Update to 3.3.4 * The async_to_sync type error is now a warning due the high false negative rate when trying to detect coroutine-returning callables in Python. - Release to 3.3.3 * The sync conversion functions now correctly detect functools.partial and other wrappers around async functions on earlier Python releases. - Release to 3.3.2 * SyncToAsync now takes an optional "executor" argument if you want to supply your own executor rather than using the built-in one. * async_to_sync and sync_to_async now check their arguments are functions of the correct type. * Raising CancelledError inside a SyncToAsync function no longer stops a future call from functioning. * ThreadSensitive now provides context hooks/override options so it can be made to be sensitive in a unit smaller than threads (e.g. per request) OBS-URL: https://build.opensuse.org/request/show/890796 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asgiref?expand=0&rev=8 --- asgiref-3.3.1.tar.gz | 3 --- asgiref-3.3.4.tar.gz | 3 +++ python-asgiref.changes | 23 +++++++++++++++++++++++ python-asgiref.spec | 13 ++++++++----- 4 files changed, 34 insertions(+), 8 deletions(-) delete mode 100644 asgiref-3.3.1.tar.gz create mode 100644 asgiref-3.3.4.tar.gz diff --git a/asgiref-3.3.1.tar.gz b/asgiref-3.3.1.tar.gz deleted file mode 100644 index d25f233..0000000 --- a/asgiref-3.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7162a3cb30ab0609f1a4c95938fd73e8604f63bdba516a7f7d64b83ff09478f0 -size 27197 diff --git a/asgiref-3.3.4.tar.gz b/asgiref-3.3.4.tar.gz new file mode 100644 index 0000000..f03c63c --- /dev/null +++ b/asgiref-3.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1216dfbdfb63826470995d31caed36225dcaf34f182e0fa257a4dd9e86f1b78 +size 30780 diff --git a/python-asgiref.changes b/python-asgiref.changes index 82b067e..5384ad3 100644 --- a/python-asgiref.changes +++ b/python-asgiref.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Wed May 5 17:30:59 UTC 2021 - Ben Greiner + +- Update to 3.3.4 + * The async_to_sync type error is now a warning due the + high false negative rate when trying to detect + coroutine-returning callables in Python. +- Release to 3.3.3 + * The sync conversion functions now correctly detect + functools.partial and other wrappers around async + functions on earlier Python releases. +- Release to 3.3.2 + * SyncToAsync now takes an optional "executor" argument if + you want to supply your own executor rather than using + the built-in one. + * async_to_sync and sync_to_async now check their + arguments are functions of the correct type. + * Raising CancelledError inside a SyncToAsync function no + longer stops a future call from functioning. + * ThreadSensitive now provides context hooks/override + options so it can be made to be sensitive in a unit + smaller than threads (e.g. per request) + ------------------------------------------------------------------- Thu Jan 14 04:31:06 UTC 2021 - Steve Kowalik diff --git a/python-asgiref.spec b/python-asgiref.spec index 31ba152..1fa6d6f 100644 --- a/python-asgiref.spec +++ b/python-asgiref.spec @@ -19,19 +19,22 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-asgiref -Version: 3.3.1 +Version: 3.3.4 Release: 0 Summary: ASGI specs, helper code, and adapters License: BSD-3-Clause URL: https://github.com/django/asgiref/ Source: https://files.pythonhosted.org/packages/source/a/asgiref/asgiref-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.5} -BuildRequires: %{python_module pytest >= 4.3.0} -BuildRequires: %{python_module pytest-asyncio >= 0.10.0} +BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing_extensions if %python-base < 3.8} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python +%if 0%{python_version_nodots} < 38 +Requires: python-typing_extensions +%endif BuildArch: noarch %python_subpackages