14
0
Files
python-python-engineio/python-python-engineio.spec
Markéta Machová 8f5dbf1d2d Accepting request 1255427 from home:DocB:branches:devel:languages:python
- 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/request/show/1255427
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

75 lines
2.5 KiB
RPMSpec

#
# spec file for package python-python-engineio
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-python-engineio
Version: 4.11.2
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
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
Suggests: python-websocket-client >= 0.54.0
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}
BuildRequires: %{python_module websocket-client >= 0.54.0}
# /SECTION
%python_subpackages
%description
Python implementation of the Engine.IO realtime server.
%prep
%autosetup -p1 -n python-engineio-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%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 and not testserver'
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/engineio
%{python_sitelib}/python_engineio-%{version}*-info
%changelog