Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-verbose-parametrize 
for openSUSE:Factory checked in at 2022-01-10 23:53:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-verbose-parametrize (Old)
 and      
/work/SRC/openSUSE:Factory/.python-pytest-verbose-parametrize.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-verbose-parametrize"

Mon Jan 10 23:53:50 2022 rev:4 rq:945369 version:1.7.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-verbose-parametrize/python-pytest-verbose-parametrize.changes
      2019-08-22 15:17:59.450340984 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-verbose-parametrize.new.1892/python-pytest-verbose-parametrize.changes
    2022-01-10 23:54:27.168849013 +0100
@@ -1,0 +2,6 @@
+Mon Jan 10 16:09:01 UTC 2022 - Matej Cepl <mc...@suse.com>
+
+- Add Iterable-collections.patch to avoid Python 3.10
+  incompatibility (gh#man-group/pytest-plugins#197).
+
+-------------------------------------------------------------------

New:
----
  Iterable-collections.patch

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

Other differences:
------------------
++++++ python-pytest-verbose-parametrize.spec ++++++
--- /var/tmp/diff_new_pack.vdYwsW/_old  2022-01-10 23:54:27.556849354 +0100
+++ /var/tmp/diff_new_pack.vdYwsW/_new  2022-01-10 23:54:27.560849357 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-verbose-parametrize
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,10 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/manahl/pytest-plugins
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-verbose-parametrize/pytest-verbose-parametrize-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Iterable-collections.patch 
gh#man-group/pytest-plugins#197 mc...@suse.com
+# Python 3.10 finally really killed collections class, which are now in
+# collections.abc
+Patch0:         Iterable-collections.patch
 BuildRequires:  %{python_module setuptools-git}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -46,6 +50,8 @@
 
 %prep
 %setup -q -n pytest-verbose-parametrize-%{version}
+%autopatch -p1
+
 # we can't do integration tests as py2 and py3 can be different versions
 # and the script simply calls $bindir/pytest
 rm tests/integration/test_verbose_parametrize.py

++++++ Iterable-collections.patch ++++++
---
 pytest_verbose_parametrize.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/pytest_verbose_parametrize.py
+++ b/pytest_verbose_parametrize.py
@@ -1,4 +1,7 @@
-from collections import Iterable
+try:
+    from collections.abc import Iterable
+except (ImportError, ModuleNotFoundError):
+    from collections import Iterable
 from six import string_types, text_type
 
 

Reply via email to