From 39814719e68aefcb37cdd1165e3d8d3be525c60e382172a3aa369bc5e4701f32 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 15 Mar 2021 05:59:35 +0000 Subject: [PATCH] - Update to 2.2.0: * Added the ``maybe_async()`` and ``maybe_async_cm()`` functions to facilitate forward compatibility with AnyIO 3 * Fixed socket stream bug on asyncio where receiving a half-close from the peer would shut down the entire connection * Fixed native task names not being set on asyncio on Python 3.8+ * Fixed ``TLSStream.send_eof()`` raising ``ValueError`` instead of the expected ``NotImplementedError`` * Fixed ``open_signal_receiver()`` on asyncio and curio hanging if the cancel scope was cancelled before the function could run * Fixed Trio test runner causing unwarranted test errors on ``BaseException``s * Fixed formatted output of ``ExceptionGroup`` containing too many newlines * Added the ``spawn_task()`` and ``wrap_async_context_manager()`` methods to ``BlockingPortal`` * Added the ``handshake_timeout`` and ``error_handler`` parameters to ``TLSListener`` * Fixed ``Event`` objects on the trio backend not inheriting from ``anyio.abc.Event`` * Fixed ``run_sync_in_worker_thread()`` raising ``UnboundLocalError`` on asyncio when cancelled * Fixed ``send()`` on socket streams not raising any exception on asyncio, and an unwrapped * ``BrokenPipeError`` on trio and curio when the peer has disconnected * Fixed ``MemoryObjectSendStream.send()`` raising ``BrokenResourceError`` when the last receiver is closed right after receiving the item * Fixed ``ValueError: Invalid file descriptor: -1`` when closing a ``SocketListener`` on asyncio OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=3 --- anyio-2.0.2.tar.gz | 3 --- anyio-2.2.0.tar.gz | 3 +++ python-anyio.changes | 20 ++++++++++++++++++++ python-anyio.spec | 19 +++++++++---------- 4 files changed, 32 insertions(+), 13 deletions(-) delete mode 100644 anyio-2.0.2.tar.gz create mode 100644 anyio-2.2.0.tar.gz diff --git a/anyio-2.0.2.tar.gz b/anyio-2.0.2.tar.gz deleted file mode 100644 index 4ca46c8..0000000 --- a/anyio-2.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35075abd32cf20fd7e0be2fee3614e80b92d5392eba257c8d2f33de3df7ca237 -size 91805 diff --git a/anyio-2.2.0.tar.gz b/anyio-2.2.0.tar.gz new file mode 100644 index 0000000..6810952 --- /dev/null +++ b/anyio-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a41c5b3a65ed92e469d51b6fba3779301850ea2e352afcf9e36c46f21ee14a9 +size 97217 diff --git a/python-anyio.changes b/python-anyio.changes index 4936c5d..6b7dfde 100644 --- a/python-anyio.changes +++ b/python-anyio.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Mar 15 05:57:41 UTC 2021 - Steve Kowalik + +- Update to 2.2.0: + * Added the ``maybe_async()`` and ``maybe_async_cm()`` functions to facilitate forward compatibility with AnyIO 3 + * Fixed socket stream bug on asyncio where receiving a half-close from the peer would shut down the entire connection + * Fixed native task names not being set on asyncio on Python 3.8+ + * Fixed ``TLSStream.send_eof()`` raising ``ValueError`` instead of the expected ``NotImplementedError`` + * Fixed ``open_signal_receiver()`` on asyncio and curio hanging if the cancel scope was cancelled before the function could run + * Fixed Trio test runner causing unwarranted test errors on ``BaseException``s + * Fixed formatted output of ``ExceptionGroup`` containing too many newlines + * Added the ``spawn_task()`` and ``wrap_async_context_manager()`` methods to ``BlockingPortal`` + * Added the ``handshake_timeout`` and ``error_handler`` parameters to ``TLSListener`` + * Fixed ``Event`` objects on the trio backend not inheriting from ``anyio.abc.Event`` + * Fixed ``run_sync_in_worker_thread()`` raising ``UnboundLocalError`` on asyncio when cancelled + * Fixed ``send()`` on socket streams not raising any exception on asyncio, and an unwrapped + * ``BrokenPipeError`` on trio and curio when the peer has disconnected + * Fixed ``MemoryObjectSendStream.send()`` raising ``BrokenResourceError`` when the last receiver is closed right after receiving the item + * Fixed ``ValueError: Invalid file descriptor: -1`` when closing a ``SocketListener`` on asyncio + ------------------------------------------------------------------- Sat Jan 30 18:29:29 UTC 2021 - Ben Greiner diff --git a/python-anyio.spec b/python-anyio.spec index 86ea9d5..34642a1 100644 --- a/python-anyio.spec +++ b/python-anyio.spec @@ -19,27 +19,27 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-anyio -Version: 2.0.2 +Version: 2.2.0 Release: 0 Summary: High level compatibility layer for asynchronous event loop implementations License: MIT URL: https://github.com/agronholm/anyio Source: https://files.pythonhosted.org/packages/source/a/anyio/anyio-%{version}.tar.gz -BuildRequires: python-rpm-macros >= 20210127.3a18043 -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module toml} -BuildRequires: %{python_module idna >= 2.8} -BuildRequires: %{python_module sniffio >= 1.1} -BuildRequires: %{python_module typing_extensions if %python-base < 3.8} BuildRequires: %{python_module async_generator if %python-base < 3.7} BuildRequires: %{python_module dataclasses if %python-base < 3.7} +BuildRequires: %{python_module idna >= 2.8} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sniffio >= 1.1} +BuildRequires: %{python_module toml} +BuildRequires: %{python_module typing_extensions if %python-base < 3.8} +BuildRequires: python-rpm-macros >= 20210127.3a18043 # SECTION test requirements BuildRequires: %{python_module hypothesis >= 4.0} BuildRequires: %{python_module pytest >= 6.0} +BuildRequires: %{python_module trio >= 0.16} BuildRequires: %{python_module trustme} BuildRequires: %{python_module uvloop} -BuildRequires: %{python_module trio >= 0.16} # Note to packagers: future versions will drop curio (https://github.com/agronholm/anyio/pull/182) BuildRequires: %{python_module curio >= 1.4} # /SECTION @@ -92,4 +92,3 @@ donttest+=" or test_getaddrinfo" %{python_sitelib}/anyio-%{version}*-info %changelog -