Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-anyio for openSUSE:Factory checked in at 2022-04-23 19:45:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-anyio (Old) and /work/SRC/openSUSE:Factory/.python-anyio.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-anyio" Sat Apr 23 19:45:12 2022 rev:10 rq:965303 version:3.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-anyio/python-anyio.changes 2022-02-17 00:30:47.777430552 +0100 +++ /work/SRC/openSUSE:Factory/.python-anyio.new.1538/python-anyio.changes 2022-04-23 19:45:29.806949833 +0200 @@ -1,0 +2,5 @@ +Sun Mar 27 18:32:27 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Add anyio-pytest7.patch -- gh#agronholm/anyio#420 + +------------------------------------------------------------------- New: ---- anyio-pytest7.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-anyio.spec ++++++ --- /var/tmp/diff_new_pack.dabVoi/_old 2022-04-23 19:45:30.614950794 +0200 +++ /var/tmp/diff_new_pack.dabVoi/_new 2022-04-23 19:45:30.618950799 +0200 @@ -25,6 +25,8 @@ 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} @@ -37,7 +39,7 @@ # SECTION test requirements BuildRequires: %{python_module hypothesis >= 4.0} BuildRequires: %{python_module mock >= 4.0 if %python-base < 3.8} -BuildRequires: %{python_module pytest >= 6.0} +BuildRequires: %{python_module pytest >= 7.0} BuildRequires: %{python_module pytest-mock >= 3.6.1} BuildRequires: %{python_module trio >= 0.16} BuildRequires: %{python_module trustme} @@ -62,7 +64,7 @@ against it to run unmodified on asyncio, curio and trio. %prep -%setup -q -n anyio-%{version} +%autosetup -p1 -n anyio-%{version} %build %python_build ++++++ anyio-pytest7.patch ++++++ >From 58fcb0c495a847e2f6627ec07fe07f4dd6ae9cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronh...@nextday.fi> 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