Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-coveralls-check"

Thu Mar 10 22:45:20 2022 rev:7 rq:960702 version:1.2.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-coveralls-check/python-coveralls-check.changes
    2020-05-28 09:19:50.865266890 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-coveralls-check.new.2349/python-coveralls-check.changes
  2022-03-11 11:32:00.869968011 +0100
@@ -1,0 +2,7 @@
+Wed Mar  9 09:21:57 UTC 2022 - pgaj...@suse.com
+
+- do not require python-mock for build
+- added patches: 
+  + python-coveralls-check-no-mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-coveralls-check-no-mock.patch

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

Other differences:
------------------
++++++ python-coveralls-check.spec ++++++
--- /var/tmp/diff_new_pack.0bDtnb/_old  2022-03-11 11:32:01.261968471 +0100
+++ /var/tmp/diff_new_pack.0bDtnb/_new  2022-03-11 11:32:01.269968480 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-coveralls-check
 #
-# Copyright (c) 2020 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,6 +25,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/cjw296/coverage-check
 Source:         
https://files.pythonhosted.org/packages/source/c/coveralls-check/coveralls-check-%{version}.tar.gz
+# https://github.com/cjw296/coveralls-check/issues/3
+Patch0:         python-coveralls-check-no-mock.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -32,11 +34,10 @@
 Requires:       python-requests
 Requires:       python-setuptools
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module backoff}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module responses}
@@ -49,6 +50,7 @@
 
 %prep
 %setup -q -n coveralls-check-%{version}
+%autopatch -p1
 
 %build
 %python_build

++++++ python-coveralls-check-no-mock.patch ++++++
Index: coveralls-check-1.2.1/tests.py
===================================================================
--- coveralls-check-1.2.1.orig/tests.py 2018-07-11 09:48:59.000000000 +0200
+++ coveralls-check-1.2.1/tests.py      2022-03-09 10:15:55.872201780 +0100
@@ -2,7 +2,6 @@ import json
 import sys
 
 import pytest
-from mock import Mock
 from responses import RequestsMock
 from testfixtures import ShouldRaise, OutputCapture, Replacer, compare
 
@@ -10,8 +9,10 @@ from coveralls_check import main
 
 if sys.version_info[0] == 2:
     PY2 = True
+    from mock import Mock
 else:
     PY2 = False
+    from unittest.mock import Mock
 
 SAMPLE_JSON = {
     "commit_sha": "xyz",

Reply via email to