Compare commits
12 Commits
Author | SHA256 | Date | |
---|---|---|---|
da6d26f453 | |||
8f1f6f86d8 | |||
6070d7df5f | |||
8f5dbf1d2d | |||
cce6945e0d | |||
0ad474152f | |||
8affd7952c | |||
0f8eb54521 | |||
33b92a068e | |||
50d8404340 | |||
0701988951 | |||
35cd380d0d |
@@ -1,54 +0,0 @@
|
|||||||
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',
|
|
3
python-engineio-4.12.0.tar.gz
Normal file
3
python-engineio-4.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9ccc0d15535ad82ed03aeff022f31d450ab1eaa9d2108ecb1c4647d587514be9
|
||||||
|
size 319601
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1f6ff1c3b3463a453b8eafa7a81f1dd52bd1728bf524988f9ab99b71c31a8d8e
|
|
||||||
size 300665
|
|
@@ -1,3 +1,59 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 16 10:52:22 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.12.0
|
||||||
|
* Optimize packet parsing to avoid unnecessary calls to
|
||||||
|
JSON parser (#399)
|
||||||
|
* Pass `environ` as a second argument to callable option
|
||||||
|
`cors_allowed_origins` #398)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 23 17:44:26 UTC 2025 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
- version 4,11,2
|
||||||
|
* Fix incorrect disconnection reason reported when browser page is closed (commit)
|
||||||
|
* Remove debugging prints :blush: (commit)
|
||||||
|
* Pass a reason argument to the disconnect handler #393 (commit)
|
||||||
|
* Add maxPayload to connection response #392 (commit) (thanks HeySMMReseller & HeySMMProvider!)
|
||||||
|
* Client option to disable timestamps in connection URLs #386 (commit)
|
||||||
|
* Return disconnected sessions as 400 errors #391 (commit)
|
||||||
|
* Handle unicode errors in ASGI driver #389 (commit)
|
||||||
|
* Replaced deprecated get_event_loop with get_running_loop #384 (commit)
|
||||||
|
* Remove constructs required by older, now unsupported Python versions (commit)
|
||||||
|
* Switched to pyenv-asyncio for async unit tests (commit)
|
||||||
|
* Adopted unittest.mock.AsyncMock in async unit tests instead of homegrown version (commit)
|
||||||
|
* Removed tests dependency on unittest.TestCase base class (commit)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 8 07:49:41 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add missing dependency python-simple-websocket
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 18 10:52:04 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 4.10.1:
|
||||||
|
* Reject request with incorrect transport #367 (commit)
|
||||||
|
* Reject requests with incorrect transport #367 (commit)
|
||||||
|
* Fixed runtime error when disconnecting all clients #368
|
||||||
|
(commit)
|
||||||
|
* More flexible handling of the ASGI path #359 (commit)
|
||||||
|
* Remove unused parameter in log message #377 (commit)
|
||||||
|
* Minor updates to the server and client documentation (commit)
|
||||||
|
* Add Python 3.13 CI builds (commit)
|
||||||
|
* Run tests with mocked eventlet to avoid 3.13 failures
|
||||||
|
(commit)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 14 00:46:24 UTC 2024 - Guang Yee <gyee@suse.com>
|
||||||
|
|
||||||
|
- Update to version 4.8.0
|
||||||
|
* Return consistent responses after Websocket connection ends
|
||||||
|
* Migrate Python package metadata to pyproject.toml
|
||||||
|
* Remove Python 3.7 from builds
|
||||||
|
* Internal code restructure (no functional changes)
|
||||||
|
- Drop python-311.patch as it is included upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 1 16:43:25 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
|
Fri Dec 1 16:43:25 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
@@ -12,7 +68,7 @@ Tue Feb 21 10:05:49 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 6 22:22:07 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
Thu Oct 6 22:22:07 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
- Update to version 4.3.4
|
- Update to version 4.3.4
|
||||||
* Let companion ASGI app handle lifespan events #287 (commit)
|
* Let companion ASGI app handle lifespan events #287 (commit)
|
||||||
* Use configured request timeout when making a WebSocket connection #286 (commit) (thanks jpfarias!)
|
* Use configured request timeout when making a WebSocket connection #286 (commit) (thanks jpfarias!)
|
||||||
|
|
||||||
@@ -34,7 +90,7 @@ Wed Jan 19 12:31:11 UTC 2022 - Axel Braun <axel.braun@gmx.de>
|
|||||||
- version 4.3.1
|
- version 4.3.1
|
||||||
* Fix support for Sanic v21.9.0 and up (commit) (thanks 13g10n!)
|
* Fix support for Sanic v21.9.0 and up (commit) (thanks 13g10n!)
|
||||||
* Include example code in flake8 pass (commit)
|
* Include example code in flake8 pass (commit)
|
||||||
* Remove unused version constant #262 (commit 1 commit 2)
|
* Remove unused version constant #262 (commit 1 commit 2)
|
||||||
* Backward incompatible change: Reject websocket messages larger than max_http_buffer_size #260 (commit)
|
* Backward incompatible change: Reject websocket messages larger than max_http_buffer_size #260 (commit)
|
||||||
* Enable or disable specific transports #259 (commit) (thanks Maciej Szeptuch!)
|
* Enable or disable specific transports #259 (commit) (thanks Maciej Szeptuch!)
|
||||||
* Option to disable the SIGINT handler in the client (commit)
|
* Option to disable the SIGINT handler in the client (commit)
|
||||||
@@ -43,13 +99,13 @@ Wed Jan 19 12:31:11 UTC 2022 - Axel Braun <axel.braun@gmx.de>
|
|||||||
* Remove unsanitized client input from error messages #250 (commit) (thanks André Carvalho!)
|
* Remove unsanitized client input from error messages #250 (commit) (thanks André Carvalho!)
|
||||||
* Use plaintext Content-Type when using polling #248 (commit) (thanks Tobias!)
|
* Use plaintext Content-Type when using polling #248 (commit) (thanks Tobias!)
|
||||||
* Return better error messages for client connection errors #243 (commit)
|
* Return better error messages for client connection errors #243 (commit)
|
||||||
* Reuse the aiohttp client session on reconnects #226 (commit)
|
* Reuse the aiohttp client session on reconnects #226 (commit)
|
||||||
* Support setting socketio_path to the root URL #242 (commit)
|
* Support setting socketio_path to the root URL #242 (commit)
|
||||||
* Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
|
* Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
|
||||||
* Pass reason when closing a WebSocket connection (commit)
|
* Pass reason when closing a WebSocket connection (commit)
|
||||||
* Improved project structure (commit)
|
* Improved project structure (commit)
|
||||||
* Remove executable permissions from files that lack shebang lines #240 (commit) (thanks Ben Beasley!)
|
* Remove executable permissions from files that lack shebang lines #240 (commit) (thanks Ben Beasley!)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 25 17:35:08 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Tue May 25 17:35:08 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-engineio
|
# spec file for package python-python-engineio
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,17 +18,19 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-python-engineio
|
Name: python-python-engineio
|
||||||
Version: 4.3.4
|
Version: 4.12.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: EngineIO server
|
Summary: EngineIO server
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/miguelgrinberg/python-engineio/
|
URL: http://github.com/miguelgrinberg/python-engineio/
|
||||||
Source: https://github.com/miguelgrinberg/python-engineio/archive/v%{version}.tar.gz#/python-engineio-%{version}.tar.gz
|
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
|
BuildRequires: %{python_module pip}
|
||||||
Patch0: python-311.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module simple-websocket >= 0.10.0}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-simple-websocket
|
||||||
Recommends: python-eventlet
|
Recommends: python-eventlet
|
||||||
Suggests: python-aiohttp >= 3.4
|
Suggests: python-aiohttp >= 3.4
|
||||||
Suggests: python-requests >= 2.21.0
|
Suggests: python-requests >= 2.21.0
|
||||||
@@ -37,6 +39,7 @@ BuildArch: noarch
|
|||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module aiohttp >= 3.4}
|
BuildRequires: %{python_module aiohttp >= 3.4}
|
||||||
BuildRequires: %{python_module eventlet}
|
BuildRequires: %{python_module eventlet}
|
||||||
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests >= 2.21.0}
|
BuildRequires: %{python_module requests >= 2.21.0}
|
||||||
BuildRequires: %{python_module tornado}
|
BuildRequires: %{python_module tornado}
|
||||||
@@ -51,17 +54,19 @@ Python implementation of the Engine.IO realtime server.
|
|||||||
%autosetup -p1 -n python-engineio-%{version}
|
%autosetup -p1 -n python-engineio-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest -rs -k 'not test_logger'
|
# FIXME: disable the static files tests because the tests/async/files is missing from
|
||||||
|
# the release tarball. Hence those tests will always fail.
|
||||||
|
%pytest -rs -k 'not test_logger and not test_static_file_routing and not test_static_files and not testserver'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/engineio
|
%{python_sitelib}/engineio
|
||||||
%{python_sitelib}/python_engineio-%{version}*-info
|
%{python_sitelib}/python_engineio-%{version}*-info
|
||||||
|
Reference in New Issue
Block a user