Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-engineio for 
openSUSE:Factory checked in at 2023-02-28 12:48:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-engineio (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-engineio.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-engineio"

Tue Feb 28 12:48:35 2023 rev:5 rq:1067992 version:4.3.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-engineio/python-python-engineio.changes
    2022-10-08 01:25:52.170318348 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-engineio.new.31432/python-python-engineio.changes
 2023-02-28 12:48:56.240595502 +0100
@@ -1,0 +2,6 @@
+Tue Feb 21 10:05:49 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add python-311.patch to support python 3.11,
+  gh#miguelgrinberg/python-engineio@ac3911356fbe
+
+-------------------------------------------------------------------

New:
----
  python-311.patch

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

Other differences:
------------------
++++++ python-python-engineio.spec ++++++
--- /var/tmp/diff_new_pack.AIYcGz/_old  2023-02-28 12:48:56.876599634 +0100
+++ /var/tmp/diff_new_pack.AIYcGz/_new  2023-02-28 12:48:56.888599711 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-engineio
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-python-engineio
 Version:        4.3.4
@@ -25,6 +24,8 @@
 License:        MIT
 URL:            http://github.com/miguelgrinberg/python-engineio/
 Source:         
https://github.com/miguelgrinberg/python-engineio/archive/v%{version}.tar.gz#/python-engineio-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM python-311.patch 
gh#miguelgrinberg/python-engineio@ac3911356fbe
+Patch0:         python-311.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -47,7 +48,7 @@
 Python implementation of the Engine.IO realtime server.
 
 %prep
-%setup -q -n python-engineio-%{version}
+%autosetup -p1 -n python-engineio-%{version}
 
 %build
 %python_build

++++++ python-311.patch ++++++
diff --git a/tests/asyncio/test_asyncio_server.py 
b/tests/asyncio/test_asyncio_server.py
index 47b3e6e..a55e1e0 100644
--- a/tests/asyncio/test_asyncio_server.py
+++ b/tests/asyncio/test_asyncio_server.py
@@ -278,9 +278,9 @@ def test_connect_custom_ping_times(self, import_module):
         assert packets[0].data['pingTimeout'] == 123000
         assert packets[0].data['pingInterval'] == 456000
 
-    @mock.patch('engineio.asyncio_socket.AsyncSocket')
     @mock.patch('importlib.import_module')
-    def test_connect_bad_poll(self, import_module, AsyncSocket):
+    @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
+    def test_connect_bad_poll(self, AsyncSocket, import_module):
         a = self.get_async_mock()
         import_module.side_effect = [a]
         AsyncSocket.return_value = self._get_mock_socket()
@@ -290,9 +290,9 @@ def test_connect_bad_poll(self, import_module, AsyncSocket):
         assert a._async['make_response'].call_count == 1
         assert a._async['make_response'].call_args[0][0] == '400 BAD REQUEST'
 
-    @mock.patch('engineio.asyncio_socket.AsyncSocket')
     @mock.patch('importlib.import_module')
-    def test_connect_transport_websocket(self, import_module, AsyncSocket):
+    @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
+    def test_connect_transport_websocket(self, AsyncSocket, import_module):
         a = self.get_async_mock(
             {
                 'REQUEST_METHOD': 'GET',
@@ -312,9 +312,9 @@ def test_connect_transport_websocket(self, import_module, 
AsyncSocket):
             == packet.OPEN
         )
 
-    @mock.patch('engineio.asyncio_socket.AsyncSocket')
     @mock.patch('importlib.import_module')
-    def test_http_upgrade_case_insensitive(self, import_module, AsyncSocket):
+    @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
+    def test_http_upgrade_case_insensitive(self, AsyncSocket, import_module):
         a = self.get_async_mock(
             {
                 'REQUEST_METHOD': 'GET',
@@ -334,11 +334,10 @@ def test_http_upgrade_case_insensitive(self, 
import_module, AsyncSocket):
             == packet.OPEN
         )
 
-    @mock.patch('engineio.asyncio_socket.AsyncSocket')
     @mock.patch('importlib.import_module')
+    @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
     def test_connect_transport_websocket_closed(
-        self, import_module, AsyncSocket
-    ):
+            self, AsyncSocket, import_module):
         a = self.get_async_mock(
             {
                 'REQUEST_METHOD': 'GET',

Reply via email to