Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-argh for openSUSE:Factory 
checked in at 2022-03-10 22:45:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argh (Old)
 and      /work/SRC/openSUSE:Factory/.python-argh.new.2349 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argh"

Thu Mar 10 22:45:23 2022 rev:18 rq:960713 version:0.26.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-argh/python-argh.changes  2021-09-22 
22:13:02.296327072 +0200
+++ /work/SRC/openSUSE:Factory/.python-argh.new.2349/python-argh.changes        
2022-03-11 11:52:02.491033472 +0100
@@ -1,0 +2,8 @@
+Thu Mar 10 10:09:41 UTC 2022 - pgaj...@suse.com
+
+- do not use python-mock for testing
+- added patches
+  fix https://github.com/neithere/argh/issues/152
+  + python-argh-no_mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-argh-no_mock.patch

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

Other differences:
------------------
++++++ python-argh.spec ++++++
--- /var/tmp/diff_new_pack.fgQbHB/_old  2022-03-11 11:52:02.859033905 +0100
+++ /var/tmp/diff_new_pack.fgQbHB/_new  2022-03-11 11:52:02.863033910 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-argh
 #
-# Copyright (c) 2021 SUSE LLC
+# 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,8 +25,9 @@
 URL:            https://github.com/neithere/argh/
 Source:         
https://files.pythonhosted.org/packages/source/a/argh/argh-%{version}.tar.gz
 Patch0:         support-py39.patch
+# https://github.com/neithere/argh/issues/152
+Patch1:         python-argh-no_mock.patch
 BuildRequires:  %{python_module iocapture}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes

++++++ python-argh-no_mock.patch ++++++
Index: argh-0.26.2/setup.py
===================================================================
--- argh-0.26.2.orig/setup.py   2016-05-11 21:05:03.000000000 +0200
+++ argh-0.26.2/setup.py        2022-03-10 11:06:42.410811689 +0100
@@ -82,7 +82,7 @@ setup(
     install_requires = install_requires,
 
     # testing
-    tests_require = ['pytest', 'mock', 'iocapture'],
+    tests_require = ['pytest', 'iocapture'],
     cmdclass = {'test': PyTest},
 
     # copyright
Index: argh-0.26.2/test/test_assembling.py
===================================================================
--- argh-0.26.2.orig/test/test_assembling.py    2014-10-26 22:04:34.000000000 
+0100
+++ argh-0.26.2/test/test_assembling.py 2022-03-10 11:06:42.410811689 +0100
@@ -4,7 +4,7 @@ Unit Tests For Assembling Phase
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 """
 import sys
-import mock
+import unittest.mock as mock
 import pytest
 
 import argh
Index: argh-0.26.2/test/test_dispatching.py
===================================================================
--- argh-0.26.2.orig/test/test_dispatching.py   2015-10-13 00:25:40.000000000 
+0200
+++ argh-0.26.2/test/test_dispatching.py        2022-03-10 11:06:42.410811689 
+0100
@@ -4,7 +4,7 @@ Dispatching tests
 ~~~~~~~~~~~~~~~~~
 """
 import argh
-from mock import Mock, patch
+from unittest.mock import Mock, patch
 import pytest
 
 from .base import make_IO
Index: argh-0.26.2/test/test_integration.py
===================================================================
--- argh-0.26.2.orig/test/test_integration.py   2022-03-10 11:06:42.398811617 
+0100
+++ argh-0.26.2/test/test_integration.py        2022-03-10 11:06:42.410811689 
+0100
@@ -8,7 +8,7 @@ import re
 import argparse
 
 import iocapture
-import mock
+import unittest.mock as mock
 import pytest
 
 import argh
Index: argh-0.26.2/test/test_interaction.py
===================================================================
--- argh-0.26.2.orig/test/test_interaction.py   2014-01-06 07:20:25.000000000 
+0100
+++ argh-0.26.2/test/test_interaction.py        2022-03-10 11:07:05.850951267 
+0100
@@ -4,7 +4,7 @@ Interaction Tests
 ~~~~~~~~~~~~~~~~~
 """
 import sys
-import mock
+import unittest.mock as mock
 
 import argh
 

Reply via email to