Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-magic-wormhole-mailbox-server 
for openSUSE:Factory checked in at 2022-05-19 22:49:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-magic-wormhole-mailbox-server (Old)
 and      
/work/SRC/openSUSE:Factory/.python-magic-wormhole-mailbox-server.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-magic-wormhole-mailbox-server"

Thu May 19 22:49:28 2022 rev:5 rq:978017 version:0.4.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.changes
        2021-07-14 23:59:23.085339267 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-magic-wormhole-mailbox-server.new.1538/python-magic-wormhole-mailbox-server.changes
      2022-05-19 22:49:52.290377299 +0200
@@ -1,0 +2,13 @@
+Wed May 18 19:55:30 UTC 2022 - Matej Cepl <[email protected]>
+
+- Clean up the SPEC file.
+
+-------------------------------------------------------------------
+Wed May 18 09:51:20 UTC 2022 - [email protected]
+
+- do not require python-mock for build
+- added patches
+  fix https://github.com/magic-wormhole/magic-wormhole/issues/439
+  + python-magic-wormhole-mailbox-server-no-mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-magic-wormhole-mailbox-server-no-mock.patch

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

Other differences:
------------------
++++++ python-magic-wormhole-mailbox-server.spec ++++++
--- /var/tmp/diff_new_pack.VqXtqo/_old  2022-05-19 22:49:53.938379412 +0200
+++ /var/tmp/diff_new_pack.VqXtqo/_new  2022-05-19 22:49:53.942379417 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-magic-wormhole-mailbox-server
 #
-# 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
@@ -26,14 +26,17 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/warner/magic-wormhole-mailbox-server
 Source:         
https://files.pythonhosted.org/packages/source/m/magic-wormhole-mailbox-server/magic-wormhole-mailbox-server-%{version}.tar.gz
+# https://github.com/magic-wormhole/magic-wormhole/issues/439
+Patch0:         python-magic-wormhole-mailbox-server-no-mock.patch
 BuildRequires:  %{python_module Twisted >= 17.5.0}
 BuildRequires:  %{python_module attrs >= 16.3.0}
 BuildRequires:  %{python_module autobahn >= 0.14.1}
-BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module treq}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-Twisted >= 17.5.0
@@ -50,13 +53,13 @@
 a transit-relay.
 
 %prep
-%setup -q -n magic-wormhole-mailbox-server-%{version}
+%autosetup -p1 -n magic-wormhole-mailbox-server-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -65,6 +68,9 @@
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/magic_wormhole_mailbox_server-%{version}*-info
+%{python_sitelib}/twisted/plugins/magic_wormhole_mailbox.py
+%{python_sitelib}/wormhole_mailbox_server
+%pycache_only 
%{python_sitelib}/twisted/plugins/__pycache__/magic_wormhole_mailbox*.pyc
 
 %changelog

++++++ python-magic-wormhole-mailbox-server-no-mock.patch ++++++
diff -upr 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_rlimits.py
 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_rlimits.py
--- 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_rlimits.py
   2022-05-17 17:46:58.549457994 +0200
+++ 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_rlimits.py
        2022-05-17 17:46:58.553458020 +0200
@@ -1,5 +1,5 @@
 from __future__ import print_function, unicode_literals
-import mock
+from unittest import mock
 from twisted.trial import unittest
 from ..increase_rlimits import increase_rlimits
 
diff -upr 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_server.py
 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_server.py
--- 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_server.py
    2022-05-17 17:46:58.549457994 +0200
+++ 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_server.py
 2022-05-17 17:46:58.553458020 +0200
@@ -1,5 +1,5 @@
 from __future__ import print_function, unicode_literals
-import mock
+from unittest import mock
 from twisted.trial import unittest
 from twisted.python import log
 from .common import ServerBase, _Util
diff -upr 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_service.py
 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_service.py
--- 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_service.py
   2022-05-17 17:46:58.549457994 +0200
+++ 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_service.py
        2022-05-17 17:46:58.553458020 +0200
@@ -1,6 +1,6 @@
 from __future__ import unicode_literals, print_function
 from twisted.trial import unittest
-import mock
+from unittest import mock
 from twisted.application.service import MultiService
 from .. import server_tap
 
diff -upr 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_web.py
 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_web.py
--- 
magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_web.py
       2022-05-17 17:46:58.549457994 +0200
+++ 
magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_web.py
    2022-05-17 17:46:58.553458020 +0200
@@ -1,6 +1,6 @@
 from __future__ import print_function, unicode_literals
 import io, time
-import mock
+from unittest import mock
 import treq
 from twisted.trial import unittest
 from twisted.internet import defer, reactor

Reply via email to