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>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,17 +18,19 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-python-engineio
|
||||
Version: 4.3.4
|
||||
Version: 4.12.0
|
||||
Release: 0
|
||||
Summary: EngineIO server
|
||||
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 pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module simple-websocket >= 0.10.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-simple-websocket
|
||||
Recommends: python-eventlet
|
||||
Suggests: python-aiohttp >= 3.4
|
||||
Suggests: python-requests >= 2.21.0
|
||||
@@ -37,6 +39,7 @@ BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module aiohttp >= 3.4}
|
||||
BuildRequires: %{python_module eventlet}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests >= 2.21.0}
|
||||
BuildRequires: %{python_module tornado}
|
||||
@@ -51,17 +54,19 @@ Python implementation of the Engine.IO realtime server.
|
||||
%autosetup -p1 -n python-engineio-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%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}
|
||||
%doc README.rst
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/engineio
|
||||
%{python_sitelib}/python_engineio-%{version}*-info
|
||||
|
Reference in New Issue
Block a user