0ef32876ed
* Added support for IPv6 in the sync client
* Added a top-level exception class (commit)
* Improve handling of immediately closed sockets with ping/pong
enabled #35 (commit) (thanks Łukasz Kędziora!)
* Unblock receive() call on timeout disconnections
* Remove python 3.7 from unit tests (commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simple-websocket?expand=0&rev=3
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-simple-websocket
|
|
#
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
|
#
|
|
# 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-simple-websocket
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: Simple WebSocket server and client for Python
|
|
License: MIT
|
|
URL: https://github.com/miguelgrinberg/simple-websocket
|
|
Source: https://files.pythonhosted.org/packages/source/s/simple-websocket/simple_websocket-%{version}.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 61.2}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module wsproto}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
Requires: python-wsproto
|
|
Suggests: python-sphinx
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Simple WebSocket server and client for Python
|
|
|
|
%prep
|
|
%autosetup -p1 -n simple_websocket-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# FIXME: Disable check for now as the upstream tarball test files are incomplete. i.e. helpers.py
|
|
# is needed by excluded from the release tarball for whatever reason. Hence, the tests will
|
|
# inevitably failed without it.
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/simple_websocket
|
|
%{python_sitelib}/simple_websocket-%{version}.dist-info
|
|
|
|
%changelog
|