From 378120b7a6c12161c4c8070181628f5e6e2204966a1ebd5d4306e4552b5689be Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 2 Oct 2023 14:49:58 +0000 Subject: [PATCH] - update to 1.0.5: * Fix some compatibility with Pytest 7. - pytest72.patch dropped (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-aiohttp?expand=0&rev=12 --- pytest-aiohttp-1.0.4.tar.gz | 3 --- pytest-aiohttp-1.0.5.tar.gz | 3 +++ pytest72.patch | 33 --------------------------------- python-pytest-aiohttp.changes | 7 +++++++ python-pytest-aiohttp.spec | 6 ++---- 5 files changed, 12 insertions(+), 40 deletions(-) delete mode 100644 pytest-aiohttp-1.0.4.tar.gz create mode 100644 pytest-aiohttp-1.0.5.tar.gz delete mode 100644 pytest72.patch diff --git a/pytest-aiohttp-1.0.4.tar.gz b/pytest-aiohttp-1.0.4.tar.gz deleted file mode 100644 index 1696beb..0000000 --- a/pytest-aiohttp-1.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:39ff3a0d15484c01d1436cbedad575c6eafbf0f57cdf76fb94994c97b5b8c5a4 -size 11868 diff --git a/pytest-aiohttp-1.0.5.tar.gz b/pytest-aiohttp-1.0.5.tar.gz new file mode 100644 index 0000000..14e7f0d --- /dev/null +++ b/pytest-aiohttp-1.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:880262bc5951e934463b15e3af8bb298f11f7d4d3ebac970aab425aff10a780a +size 12209 diff --git a/pytest72.patch b/pytest72.patch deleted file mode 100644 index 513715d..0000000 --- a/pytest72.patch +++ /dev/null @@ -1,33 +0,0 @@ -From d7f142e8ee73fa50096e5e9ed00458ea7e874845 Mon Sep 17 00:00:00 2001 -From: Daniel Garcia Moreno -Date: Wed, 30 Nov 2022 08:01:19 +0100 -Subject: [PATCH] Use pytest.hookimpl in pytest_configure - -pytest.PytestDeprecationWarning: The hookimpl pytest_configure uses -old-style configuration options (marks or attributes). - -Please use the pytest.hookimpl(tryfirst=True) decorator instead to -configure the hooks. -See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers - -Fix https://github.com/aio-libs/pytest-aiohttp/issues/47 ---- - pytest_aiohttp/plugin.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pytest_aiohttp/plugin.py b/pytest_aiohttp/plugin.py -index d4854d8..68c8ad8 100644 ---- a/pytest_aiohttp/plugin.py -+++ b/pytest_aiohttp/plugin.py -@@ -18,7 +18,7 @@ LEGACY_MODE = DeprecationWarning( - ) - - --@pytest.mark.tryfirst -+@pytest.hookimpl(tryfirst=True) - def pytest_configure(config) -> None: - val = config.getoption("asyncio_mode") - if val is None: --- -2.38.1 - diff --git a/python-pytest-aiohttp.changes b/python-pytest-aiohttp.changes index a7194ab..22e3ae8 100644 --- a/python-pytest-aiohttp.changes +++ b/python-pytest-aiohttp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Oct 2 14:49:24 UTC 2023 - Dirk Müller + +- update to 1.0.5: + * Fix some compatibility with Pytest 7. +- pytest72.patch dropped (upstream) + ------------------------------------------------------------------- Tue Jul 4 11:34:16 UTC 2023 - ecsos diff --git a/python-pytest-aiohttp.spec b/python-pytest-aiohttp.spec index e9ccf42..870313c 100644 --- a/python-pytest-aiohttp.spec +++ b/python-pytest-aiohttp.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-aiohttp # -# Copyright (c) 2022 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 @@ -19,15 +19,13 @@ %define pyname pytest-aiohttp %{?sle15_python_module_pythons} Name: python-pytest-aiohttp -Version: 1.0.4 +Version: 1.0.5 Release: 0 Summary: Python pytest plugin for aiohttp support License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/aio-libs/pytest-aiohttp Source: https://files.pythonhosted.org/packages/source/p/pytest-aiohttp/pytest-aiohttp-%{version}.tar.gz -# PATCH-FIX-UPSTREAM pytest72.patch gh#aio-libs/pytest-aiohttp#49 -Patch0: pytest72.patch BuildRequires: %{python_module aiohttp >= 3.8.1} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pip}