Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-pytest-profiling"

Fri Dec  9 13:18:27 2022 rev:4 rq:1041842 version:1.7.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-profiling/python-pytest-profiling.changes
  2022-04-22 21:55:53.686918157 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-profiling.new.1835/python-pytest-profiling.changes
        2022-12-09 13:19:51.983666336 +0100
@@ -1,0 +2,11 @@
+Thu Dec  8 11:56:08 UTC 2022 - pgaj...@suse.com
+
+- do not require mock
+- use -p1 as quilt refresh does not like higher ones
+- modified patches
+  % pytest-fixtures-pr171-remove-mock.patch (refreshed)
+- added patches
+  fix https://github.com/man-group/pytest-plugins/issues/209
+  + python-pytest-profiling-no-six.patch
+
+-------------------------------------------------------------------

New:
----
  python-pytest-profiling-no-six.patch

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

Other differences:
------------------
++++++ python-pytest-profiling.spec ++++++
--- /var/tmp/diff_new_pack.qRtE1p/_old  2022-12-09 13:19:52.359668334 +0100
+++ /var/tmp/diff_new_pack.qRtE1p/_new  2022-12-09 13:19:52.359668334 +0100
@@ -28,20 +28,20 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-profiling/pytest-profiling-%{version}.tar.gz
 # PATCH-FEATURE-UPSTREAM pytest-fixtures-pr171-remove-mock.patch -- 
gh#man-group#pytest-plugins#171
 Patch0:         pytest-fixtures-pr171-remove-mock.patch
+# https://github.com/man-group/pytest-plugins/issues/209
+Patch1:         python-pytest-profiling-no-six.patch
 BuildRequires:  %{python_module setuptools-git}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-gprof2dot
 Requires:       python-pytest
-Requires:       python-six
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module gprof2dot}
 BuildRequires:  %{python_module more-itertools}
 BuildRequires:  %{python_module pytest-virtualenv}
 BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module six}
 %if %{with python2}
 BuildRequires:  python2-mock
 %endif
@@ -52,7 +52,7 @@
 Profiling plugin for py.test
 
 %prep
-%autosetup -p2 -n pytest-profiling-%{version}
+%autosetup -p1 -n pytest-profiling-%{version}
 # Unpin
 sed -i 's/more-itertools==5.0.0/more-itertools/' 
tests/integration/test_profile_integration.py
 

++++++ pytest-fixtures-pr171-remove-mock.patch ++++++
--- /var/tmp/diff_new_pack.qRtE1p/_old  2022-12-09 13:19:52.383668461 +0100
+++ /var/tmp/diff_new_pack.qRtE1p/_new  2022-12-09 13:19:52.387668483 +0100
@@ -1,7 +1,7 @@
 diff --git a/pytest-profiling/tests/unit/test_profile.py 
b/pytest-profiling/tests/unit/test_profile.py
 index 616c4c6..614422e 100644
---- a/pytest-profiling/tests/unit/test_profile.py
-+++ b/pytest-profiling/tests/unit/test_profile.py
+--- a/tests/unit/test_profile.py
++++ b/tests/unit/test_profile.py
 @@ -8,7 +8,12 @@
  reload_module(pytest_profiling)
  

++++++ python-pytest-profiling-no-six.patch ++++++
Index: pytest-profiling-1.7.0/pytest_profiling.py
===================================================================
--- pytest-profiling-1.7.0.orig/pytest_profiling.py
+++ pytest-profiling-1.7.0/pytest_profiling.py
@@ -10,7 +10,6 @@ import pipes
 import errno
 from hashlib import md5
 
-import six
 import pytest
 
 LARGE_FILENAME_HASH_LEN = 8
@@ -18,7 +17,7 @@ LARGE_FILENAME_HASH_LEN = 8
 
 def clean_filename(s):
     forbidden_chars = set('/?<>\:*|"')
-    return six.text_type("".join(c if c not in forbidden_chars and ord(c) < 
127 else '_'
+    return str("".join(c if c not in forbidden_chars and ord(c) < 127 else '_'
                                  for c in s))
 
 
Index: pytest-profiling-1.7.0/tests/unit/test_profile.py
===================================================================
--- pytest-profiling-1.7.0.orig/tests/unit/test_profile.py
+++ pytest-profiling-1.7.0/tests/unit/test_profile.py
@@ -2,10 +2,10 @@
 # the top-level code in pytest_profiling will be omitted from
 # coverage, so force it to be reloaded within this test unit under coverage
 
-from six.moves import reload_module  # @UnresolvedImport
+from importlib import reload  # @UnresolvedImport
 
 import pytest_profiling
-reload_module(pytest_profiling)
+reload(pytest_profiling)
 
 from pytest_profiling import Profiling, pytest_addoption, pytest_configure
 

Reply via email to