diff --git a/anyio-3.5.0.tar.gz b/anyio-3.5.0.tar.gz deleted file mode 100644 index b25b18b..0000000 --- a/anyio-3.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0aeffe2fb1fdf374a8e4b471444f0f3ac4fb9f5a5b542b48824475e0042a5a6 -size 136934 diff --git a/anyio-3.6.2.tar.gz b/anyio-3.6.2.tar.gz new file mode 100644 index 0000000..41b8787 --- /dev/null +++ b/anyio-3.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25ea0d673ae30af41a0c442f81cf3b38c7e79fdc7b60335a4c14e05eb0947421 +size 140378 diff --git a/anyio-pytest7.patch b/anyio-pytest7.patch deleted file mode 100644 index 39e3346..0000000 --- a/anyio-pytest7.patch +++ /dev/null @@ -1,88 +0,0 @@ -From 58fcb0c495a847e2f6627ec07fe07f4dd6ae9cd9 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= -Date: Mon, 7 Feb 2022 00:16:18 +0200 -Subject: [PATCH] Upgraded pytest to 7.0 - ---- - setup.cfg | 2 +- - tests/test_pytest_plugin.py | 14 +++++++------- - 2 files changed, 8 insertions(+), 8 deletions(-) - -Index: anyio-3.5.0/setup.cfg -=================================================================== ---- anyio-3.5.0.orig/setup.cfg -+++ anyio-3.5.0/setup.cfg -@@ -47,7 +47,7 @@ test = - contextlib2; python_version < '3.7' - coverage[toml] >= 4.5 - hypothesis >= 4.0 -- pytest >= 6.0 -+ pytest >= 7.0 - pytest-mock >= 3.6.1 - trustme - uvloop < 0.15; python_version < '3.7' and (platform_python_implementation == 'CPython' and platform_system != 'Windows') -Index: anyio-3.5.0/tests/test_pytest_plugin.py -=================================================================== ---- anyio-3.5.0.orig/tests/test_pytest_plugin.py -+++ anyio-3.5.0/tests/test_pytest_plugin.py -@@ -1,5 +1,5 @@ - import pytest --from _pytest.pytester import Testdir -+from _pytest.pytester import Pytester - - from anyio import get_all_backends - -@@ -9,7 +9,7 @@ pytestmark = pytest.mark.filterwarnings( - pytest_args = '-v', '-p', 'anyio', '-p', 'no:asyncio' - - --def test_plugin(testdir: Testdir) -> None: -+def test_plugin(testdir: Pytester) -> None: - testdir.makeconftest( - """ - import sniffio -@@ -67,7 +67,7 @@ def test_plugin(testdir: Testdir) -> Non - result.assert_outcomes(passed=3 * len(get_all_backends()), skipped=len(get_all_backends())) - - --def test_asyncio(testdir: Testdir) -> None: -+def test_asyncio(testdir: Pytester) -> None: - testdir.makeconftest( - """ - import asyncio -@@ -140,7 +140,7 @@ def test_asyncio(testdir: Testdir) -> No - result.assert_outcomes(passed=2, failed=1, errors=2) - - --def test_autouse_async_fixture(testdir: Testdir) -> None: -+def test_autouse_async_fixture(testdir: Pytester) -> None: - testdir.makeconftest( - """ - import pytest -@@ -177,7 +177,7 @@ def test_autouse_async_fixture(testdir: - result.assert_outcomes(passed=len(get_all_backends())) - - --def test_cancel_scope_in_asyncgen_fixture(testdir: Testdir) -> None: -+def test_cancel_scope_in_asyncgen_fixture(testdir: Pytester) -> None: - testdir.makepyfile( - """ - import pytest -@@ -204,7 +204,7 @@ def test_cancel_scope_in_asyncgen_fixtur - result.assert_outcomes(passed=len(get_all_backends())) - - --def test_hypothesis_module_mark(testdir: Testdir) -> None: -+def test_hypothesis_module_mark(testdir: Pytester) -> None: - testdir.makepyfile( - """ - import pytest -@@ -235,7 +235,7 @@ def test_hypothesis_module_mark(testdir: - result.assert_outcomes(passed=len(get_all_backends()) + 1, xfailed=len(get_all_backends())) - - --def test_hypothesis_function_mark(testdir: Testdir) -> None: -+def test_hypothesis_function_mark(testdir: Pytester) -> None: - testdir.makepyfile( - """ - import pytest diff --git a/python-anyio.changes b/python-anyio.changes index e8fff69..2280507 100644 --- a/python-anyio.changes +++ b/python-anyio.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Mon Nov 21 21:04:03 UTC 2022 - Dirk Müller + +- update to 3.6.2: + - Pinned Trio to < 0.22 to avoid incompatibility with AnyIO's ``ExceptionGroup`` class + causing ``AttributeError: 'NonBaseMultiError' object has no attribute '_exceptions'`` + (AnyIO 4 is unaffected) + - Fixed exception handler in the asyncio test runner not properly handling a context + that does not contain the ``exception`` key + - Fixed ``TypeError`` in ``get_current_task()`` on asyncio when using a custom ``Task`` factory + - Updated type annotations on ``run_process()`` and ``open_process()``: + * ``command`` now accepts accepts bytes and sequences of bytes + * ``stdin``, ``stdout`` and ``stderr`` now accept file-like objects + - Changed the pytest plugin to run both the setup and teardown phases of asynchronous + generator fixtures within a single task to enable use cases such as cancel scopes and + task groups where a context manager straddles the ``yield`` +- drop anyio-pytest7.patch (upstream) + ------------------------------------------------------------------- Sun Mar 27 18:32:27 UTC 2022 - Ben Greiner diff --git a/python-anyio.spec b/python-anyio.spec index 9794c15..354d9e7 100644 --- a/python-anyio.spec +++ b/python-anyio.spec @@ -19,14 +19,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-anyio -Version: 3.5.0 +Version: 3.6.2 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 -# PATCH-FIX-UPSTREAM anyio-pytest7.patch -- gh#agronholm/anyio#420 -Patch1: anyio-pytest7.patch BuildRequires: %{python_module contextlib2 if %python-base < 3.7} BuildRequires: %{python_module dataclasses if %python-base < 3.7} BuildRequires: %{python_module idna >= 2.8}