1
0

22 Commits

Author SHA256 Message Date
2ac0c6cc6a Accepting request 1271277 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1271277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=11
2025-04-22 15:29:32 +00:00
85cc57ade5 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=22
2025-04-22 06:39:17 +00:00
bc689e5eeb Accepting request 1255538 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=10
2025-03-24 12:32:42 +00:00
f09daf0f9b - version 4,11,2
* Fix incorrect disconnection reason reported when browser page is closed (commit)
  * Remove debugging prints 😊 (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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=20
2025-03-24 09:14:15 +00:00
cd95790c9c Accepting request 1222660 from devel:languages:python
- Add missing dependency python-simple-websocket

OBS-URL: https://build.opensuse.org/request/show/1222660
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=9
2024-11-08 11:01:22 +00:00
fc956b3de8 - Add missing dependency python-simple-websocket
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=18
2024-11-08 07:50:22 +00:00
99811f03fe Accepting request 1208853 from devel:languages:python
- 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)

- Update to version 4.3.4
 * Remove unused version constant #262 (commit 1 commit 2)
 * Reuse the aiohttp client session on reconnects #226 (commit)
 * Remove executable permissions from files that lack shebang lines #240 (commit) (thanks Ben Beasley!)

OBS-URL: https://build.opensuse.org/request/show/1208853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=8
2024-10-18 13:58:44 +00:00
bf30da28e9 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=16
2024-10-18 10:52:14 +00:00
50a9854aa0 - update to 4.9.1:
* Fix inverted shutdown logic in async service task #354
  * More robust WebSocket close detection in the sync client #346
  * Option to disable routing in ASGIApp #345
  * More robust handling of polling disconnects #254
  * Clearer client logs after disconnect #342
  * Combine ssl_verify with other SSL options
  * Hold references to background tasks to avoid garbage
    collection
  * Clearer documentation for the `max_http_buffer_size` argument
  * Fix invalid WebSocket responses #331 #332 #338
- Update to version 4.3.4
 * Remove unused version constant #262 (commit 1 commit 2)
 * Reuse the aiohttp client session on reconnects #226 (commit)
 * Remove executable permissions from files that lack shebang lines #240 (commit) (thanks Ben Beasley!)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=15
2024-09-30 10:47:35 +00:00
9caf827ccb Accepting request 1196099 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1196099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=7
2024-08-27 17:38:44 +00:00
3fcd75c05f Accepting request 1130384 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1130384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=6
2023-12-02 16:13:16 +00:00
6f36c9b611 Accepting request 1130325 from home:alarrosa:branches:devel:languages:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1130325
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=10
2023-12-02 08:41:44 +00:00
396c594c20 Accepting request 1067992 from devel:languages:python
- Add python-311.patch to support python 3.11,
  gh#miguelgrinberg/python-engineio@ac3911356fbe

OBS-URL: https://build.opensuse.org/request/show/1067992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=5
2023-02-28 11:48:35 +00:00
0cb9def0ae - Add python-311.patch to support python 3.11,
gh#miguelgrinberg/python-engineio@ac3911356fbe

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=8
2023-02-21 10:06:34 +00:00
1758937229 Accepting request 1008713 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1008713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=4
2022-10-07 23:25:30 +00:00
e947477506 Accepting request 1008607 from home:yarunachalam:branches:devel:languages:python
- Update to version 4.3.4 
  * Let companion ASGI app handle lifespan events #287 (commit)
  * Use configured request timeout when making a WebSocket connection #286 (commit) (thanks jpfarias!)
- Update to version 4.3.3
  * Handle ASGI lifespan when running with a secondary ASGI app #284 (commit) (thanks mozartilize!)
  * Update deprecated usage of asyncio.wait() #281 (commit) (thanks Ben Beasley!)
  * Better handling of queued WebSocket messages in uWSGI #256 (commit)
  * Gracefully fail to decode empty packets #269 (commit)
  * Only attempt to set an async signal handler once #276 (commit)
- Update to version 4.3.2
  * Option to use a callable for cors_allowed_origins #264 (commit)
  * Close aiohttp session when disconnecting #272 (commit)
  * Remove 3.6 and pypy-3.6 builds, add 3.10 and pypy-3.8 (commit)

OBS-URL: https://build.opensuse.org/request/show/1008607
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=6
2022-10-07 07:55:51 +00:00
8a0ea1dc78 Accepting request 948408 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/948408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=3
2022-01-24 22:10:12 +00:00
7d821b0e41 Accepting request 948193 from home:DocB:branches:devel:languages:python
- version 4.3.1
 * Fix support for Sanic v21.9.0 and up (commit) (thanks 13g10n!)
 * Include example code in flake8 pass (commit)
 * Remove unused version constant #262 (commit 1 commit 2) 
 * Backward incompatible change: Reject websocket messages larger than max_http_buffer_size #260 (commit)
 * Enable or disable specific transports #259 (commit) (thanks Maciej Szeptuch!)
 * Option to disable the SIGINT handler in the client (commit)
 * Support binary packets with zero length #257 (commit)
 * Improve documentation on start_background_task() function (commit)
 * Remove unsanitized client input from error messages #250 (commit) (thanks André Carvalho!)
 * Use plaintext Content-Type when using polling #248 (commit) (thanks Tobias!)
 * Return better error messages for client connection errors #243 (commit)
 * Reuse the aiohttp client session on reconnects #226 (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)
 * Pass reason when closing a WebSocket connection (commit)
 * Improved project structure (commit)
 * Remove executable permissions from files that lack shebang lines #240 (commit) (thanks Ben Beasley!)

OBS-URL: https://build.opensuse.org/request/show/948193
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=5
2022-01-24 13:28:03 +00:00
d5aadebcf1 Accepting request 895560 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/895560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=2
2021-06-01 08:37:07 +00:00
491721d3db Accepting request 895419 from home:DocB:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/895419
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=3
2021-05-26 14:29:46 +00:00
e362c2515c Accepting request 852935 from devel:languages:python
from :misc

OBS-URL: https://build.opensuse.org/request/show/852935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-engineio?expand=0&rev=1
2020-12-04 20:29:00 +00:00
b3a9640422 Accepting request 851595 from home:jayvdb:py-submit
from :misc , intrinsic part of python-socketio with 2.1k stars
https://github.com/miguelgrinberg/python-socketio
no. 1270 on https://hugovk.github.io/top-pypi-packages/

OBS-URL: https://build.opensuse.org/request/show/851595
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-engineio?expand=0&rev=1
2020-12-02 09:14:32 +00:00
6 changed files with 59 additions and 68 deletions

View File

@@ -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',

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ccc0d15535ad82ed03aeff022f31d450ab1eaa9d2108ecb1c4647d587514be9
size 319601

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1f6ff1c3b3463a453b8eafa7a81f1dd52bd1728bf524988f9ab99b71c31a8d8e
size 300665

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a32585d8fecd0118264fe0c39788670456ca9aa466d7c026d995cfff68af164
size 88626

View File

@@ -1,3 +1,49 @@
-------------------------------------------------------------------
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>
@@ -22,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>
- Update to version 4.3.4
- Update to version 4.3.4
* Let companion ASGI app handle lifespan events #287 (commit)
* Use configured request timeout when making a WebSocket connection #286 (commit) (thanks jpfarias!)
@@ -44,7 +90,7 @@ Wed Jan 19 12:31:11 UTC 2022 - Axel Braun <axel.braun@gmx.de>
- version 4.3.1
* Fix support for Sanic v21.9.0 and up (commit) (thanks 13g10n!)
* 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)
* Enable or disable specific transports #259 (commit) (thanks Maciej Szeptuch!)
* Option to disable the SIGINT handler in the client (commit)
@@ -53,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!)
* Use plaintext Content-Type when using polling #248 (commit) (thanks Tobias!)
* 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)
* Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
* Pass reason when closing a WebSocket connection (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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-engineio
#
# Copyright (c) 2024 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,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-python-engineio
Version: 4.8.0
Version: 4.12.0
Release: 0
Summary: EngineIO server
License: MIT
@@ -30,6 +30,7 @@ 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
@@ -38,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}
@@ -61,7 +63,7 @@ Python implementation of the Engine.IO realtime server.
%check
# 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'
%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.md