Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-aiohttp for 
openSUSE:Factory checked in at 2022-12-13 18:55:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-aiohttp (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-aiohttp.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-aiohttp"

Tue Dec 13 18:55:07 2022 rev:4 rq:1039049 version:1.0.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-aiohttp/python-pytest-aiohttp.changes  
    2022-10-18 12:45:27.649786702 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-aiohttp.new.1835/python-pytest-aiohttp.changes
    2022-12-13 18:55:21.375167701 +0100
@@ -1,0 +2,6 @@
+Wed Nov 30 07:21:17 UTC 2022 - Daniel Garcia <[email protected]>
+
+- Add pytest72.patch to make it compatible with pytest 7.2.0
+  gh#aio-libs/pytest-aiohttp#49
+
+-------------------------------------------------------------------

New:
----
  pytest72.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-aiohttp.spec ++++++
--- /var/tmp/diff_new_pack.vclsDN/_old  2022-12-13 18:55:21.855170263 +0100
+++ /var/tmp/diff_new_pack.vclsDN/_new  2022-12-13 18:55:21.859170284 +0100
@@ -25,11 +25,13 @@
 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}
 BuildRequires:  %{python_module pytest >= 6.1.0}
-BuildRequires:  %{python_module pytest-asyncio >= 0.17.2}
+BuildRequires:  %{python_module pytest-asyncio >= 0.20.2}
 BuildRequires:  %{python_module setuptools_scm >= 6.2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
@@ -37,7 +39,7 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-aiohttp >= 3.8.1
 Requires:       python-pytest >= 6.1.0
-Requires:       python-pytest-asyncio >= 0.17.2
+Requires:       python-pytest-asyncio >= 0.20.2
 BuildArch:      noarch
 %python_subpackages
 
@@ -45,7 +47,7 @@
 A library that provides fixtures for creation test aiohttp server and client.
 
 %prep
-%setup -q -n %{pyname}-%{version}
+%autosetup -p1 -n %{pyname}-%{version}
 
 %build
 %pyproject_wheel

++++++ pytest72.patch ++++++
>From d7f142e8ee73fa50096e5e9ed00458ea7e874845 Mon Sep 17 00:00:00 2001
From: Daniel Garcia Moreno <[email protected]>
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(
 )
 
 
[email protected]
[email protected](tryfirst=True)
 def pytest_configure(config) -> None:
     val = config.getoption("asyncio_mode")
     if val is None:
-- 
2.38.1

Reply via email to