forked from pool/python-simple-websocket
Accepting request 1194153 from home:yeey:branches:devel:languages:python
- Release 1.0.0 * New async client and server #28 (commit) * On a closed connection, return buffered input before raising an exception #30 (commit) * Do not duplicate SSLSocket instances #26 (commit) * Handle broken pipe errors in background thread #29 (commit) * Remove unused argument (commit) * Eliminate race conditions during testing #27 (commit) * Remove python 3.7 from unit tests (commit) OBS-URL: https://build.opensuse.org/request/show/1194153 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simple-websocket?expand=0&rev=1
This commit is contained in:
63
python-simple-websocket.spec
Normal file
63
python-simple-websocket.spec
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# spec file for package python-simple-websocket
|
||||
#
|
||||
# Copyright (c) 2024 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-simple-websocket
|
||||
Version: 1.0.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-rpm-macros
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# 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
|
Reference in New Issue
Block a user