Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ntfy for openSUSE:Factory 
checked in at 2022-05-04 15:10:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ntfy (Old)
 and      /work/SRC/openSUSE:Factory/.python-ntfy.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ntfy"

Wed May  4 15:10:48 2022 rev:8 rq:974775 version:2.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ntfy/python-ntfy.changes  2022-02-17 
23:41:50.523700261 +0100
+++ /work/SRC/openSUSE:Factory/.python-ntfy.new.1538/python-ntfy.changes        
2022-05-04 15:11:10.168173415 +0200
@@ -1,0 +2,7 @@
+Tue May  3 12:39:50 UTC 2022 - pgaj...@suse.com
+
+- added patches
+  fix https://github.com/dschep/ntfy/issues/247
+  + python-ntfy-no-mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-ntfy-no-mock.patch

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

Other differences:
------------------
++++++ python-ntfy.spec ++++++
--- /var/tmp/diff_new_pack.ZNc1Us/_old  2022-05-04 15:11:10.688174054 +0200
+++ /var/tmp/diff_new_pack.ZNc1Us/_new  2022-05-04 15:11:10.696174064 +0200
@@ -26,10 +26,11 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/dschep/ntfy
 Source:         ntfy-%{version}.tar.xz
+# https://github.com/dschep/ntfy/issues/247
+Patch0:         python-ntfy-no-mock.patch
 BuildRequires:  %{python_module appdirs}
 # test requirements
 BuildRequires:  %{python_module emoji}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
@@ -41,7 +42,7 @@
 Requires:       python-requests
 Requires:       python-ruamel.yaml
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 Suggests:       python-dnspython3
 Suggests:       python-emoji
 Suggests:       python-instapush
@@ -67,7 +68,7 @@
     $ ntfy done sleep 10
 
 %prep
-%autosetup -n ntfy-%{version}
+%autosetup -p1 -n ntfy-%{version}
 
 %build
 %python_build

++++++ python-ntfy-no-mock.patch ++++++
diff -upr ntfy-2.7.0.orig/tests/test_cli.py ntfy-2.7.0/tests/test_cli.py
--- ntfy-2.7.0.orig/tests/test_cli.py   2022-05-03 14:30:38.755237565 +0200
+++ ntfy-2.7.0/tests/test_cli.py        2022-05-03 14:30:38.763237615 +0200
@@ -1,7 +1,7 @@
 from time import time
 from unittest import TestCase, main
 
-from mock import MagicMock, Mock, patch
+from unittest.mock import MagicMock, Mock, patch
 from ntfy.cli import main as ntfy_main
 from ntfy.cli import auto_done, run_cmd
 
diff -upr ntfy-2.7.0.orig/tests/test_config.py ntfy-2.7.0/tests/test_config.py
--- ntfy-2.7.0.orig/tests/test_config.py        2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_config.py     2022-05-03 14:30:38.763237615 +0200
@@ -3,7 +3,7 @@ from os import environ
 from sys import version_info
 from unittest import TestCase, main, skipIf
 
-from mock import mock_open, patch
+from unittest.mock import mock_open, patch
 from ntfy.config import DEFAULT_CONFIG, load_config
 
 py = version_info.major
diff -upr ntfy-2.7.0.orig/tests/test_integration.py 
ntfy-2.7.0/tests/test_integration.py
--- ntfy-2.7.0.orig/tests/test_integration.py   2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_integration.py        2022-05-03 14:30:38.763237615 
+0200
@@ -1,7 +1,7 @@
 from sys import modules, version_info
 from unittest import TestCase, main
 
-from mock import MagicMock, mock_open, patch
+from unittest.mock import MagicMock, mock_open, patch
 from ntfy.cli import main as ntfy_main
 
 py = version_info.major
diff -upr ntfy-2.7.0.orig/tests/test_notifico.py 
ntfy-2.7.0/tests/test_notifico.py
--- ntfy-2.7.0.orig/tests/test_notifico.py      2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_notifico.py   2022-05-03 14:30:38.763237615 +0200
@@ -2,7 +2,7 @@ from unittest import TestCase, main
 
 from requests import HTTPError, Response
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.notifico import notify
 
 
diff -upr ntfy-2.7.0.orig/tests/test_ntfy.py ntfy-2.7.0/tests/test_ntfy.py
--- ntfy-2.7.0.orig/tests/test_ntfy.py  2022-05-03 14:30:38.755237565 +0200
+++ ntfy-2.7.0/tests/test_ntfy.py       2022-05-03 14:30:38.763237615 +0200
@@ -1,7 +1,7 @@
 from unittest import TestCase
 
 import ntfy
-from mock import patch
+from unittest.mock import patch
 from ntfy import notify
 
 
diff -upr ntfy-2.7.0.orig/tests/test_prowl.py ntfy-2.7.0/tests/test_prowl.py
--- ntfy-2.7.0.orig/tests/test_prowl.py 2022-05-03 14:30:38.755237565 +0200
+++ ntfy-2.7.0/tests/test_prowl.py      2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase, main
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.prowl import API_URL, NTFY_API_KEY, notify
 from ntfy.config import USER_AGENT
 
diff -upr ntfy-2.7.0.orig/tests/test_pushalot.py 
ntfy-2.7.0/tests/test_pushalot.py
--- ntfy-2.7.0.orig/tests/test_pushalot.py      2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_pushalot.py   2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase, main
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.pushalot import notify
 from ntfy.config import USER_AGENT
 
diff -upr ntfy-2.7.0.orig/tests/test_pushbullet.py 
ntfy-2.7.0/tests/test_pushbullet.py
--- ntfy-2.7.0.orig/tests/test_pushbullet.py    2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_pushbullet.py 2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase, main
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.pushbullet import notify
 from ntfy.config import USER_AGENT
 
diff -upr ntfy-2.7.0.orig/tests/test_pushjet.py ntfy-2.7.0/tests/test_pushjet.py
--- ntfy-2.7.0.orig/tests/test_pushjet.py       2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_pushjet.py    2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.pushjet import notify
 from ntfy.config import USER_AGENT
 
diff -upr ntfy-2.7.0.orig/tests/test_pushover.py 
ntfy-2.7.0/tests/test_pushover.py
--- ntfy-2.7.0.orig/tests/test_pushover.py      2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_pushover.py   2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase, main
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.pushover import notify
 from ntfy.config import USER_AGENT
 
diff -upr ntfy-2.7.0.orig/tests/test_simplepush.py 
ntfy-2.7.0/tests/test_simplepush.py
--- ntfy-2.7.0.orig/tests/test_simplepush.py    2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_simplepush.py 2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase
 
-from mock import patch
+from unittest.mock import patch
 from ntfy.backends.simplepush import notify
 from ntfy.config import USER_AGENT
 
diff -upr ntfy-2.7.0.orig/tests/test_systemlog.py 
ntfy-2.7.0/tests/test_systemlog.py
--- ntfy-2.7.0.orig/tests/test_systemlog.py     2022-05-03 14:30:38.755237565 
+0200
+++ ntfy-2.7.0/tests/test_systemlog.py  2022-05-03 14:30:38.763237615 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase, skipIf
 
-from mock import call, patch
+from unittest.mock import call, patch
 
 try:
     import syslog
diff -upr ntfy-2.7.0.orig/tests/test_xmpp.py ntfy-2.7.0/tests/test_xmpp.py
--- ntfy-2.7.0.orig/tests/test_xmpp.py  2022-05-03 14:30:38.755237565 +0200
+++ ntfy-2.7.0/tests/test_xmpp.py       2022-05-03 14:30:38.767237640 +0200
@@ -1,6 +1,6 @@
 from unittest import TestCase
 
-from mock import MagicMock, patch
+from unittest.mock import MagicMock, patch
 from ntfy.backends.xmpp import NtfySendMsgBot, notify
 from ntfy.config import USER_AGENT
 

Reply via email to