1
0
python-Flask-SocketIO/python-Flask-SocketIO.spec
Matej Cepl 973904bdab Accepting request 895496 from home:DocB:branches:devel:languages:python
Picked this up from d:l:p:misc, needed for new version of onionshare

- Update to 5.0.3 
  * Document the use of simple-websocket with the development web server (commit)
  * Show transport in example apps (commit)
  * Added Open Collective funding option (commit)
  * Silence deprecation warning from Werkzeug 2.x #1549 (commit)
  * Updated server options in documentation (commit)
  * Updated socketio javascript client versions in documentation (commit)
  * Fix typo in documentation #1524 (commit) (thanks lennertcl!)
  * Change room documentation from room= to to= #1519 (commit) (thanks David McInnis!)
  * Fixed a type in the Kafka URL in the documentation #1476 (commit) (thanks VVakko!)
  * Fixed typos in documentation #1447 (commit)
  * Add test_socketio.py from Github repo for testing, because it
    is not included into the PyPI sdist anymore.
- conversion to singlespec
  update to version 5.0.1

OBS-URL: https://build.opensuse.org/request/show/895496
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SocketIO?expand=0&rev=1
2021-06-01 06:45:09 +00:00

61 lines
2.0 KiB
RPMSpec

#
# spec file for package python-Flask-SocketIO
#
# Copyright (c) 2021 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-Flask-SocketIO
Version: 5.0.3
Release: 0
License: MIT
Summary: SocketIO integration for Flask applications
Url: http://github.com/miguelgrinberg/Flask-SocketIO/
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/F/Flask-SocketIO/Flask-SocketIO-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/miguelgrinberg/Flask-SocketIO/v%{version}/test_socketio.py
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module Flask >= 0.9}
BuildRequires: %{python_module python-socketio >= 5.0.2}
BuildRequires: fdupes
Requires: python-Flask >= 0.9
Requires: python-python-socketio >= 5.0.2
BuildArch: noarch
%python_subpackages
%description
Socket.IO integration for Flask applications.
%prep
%setup -q -n Flask-SocketIO-%{version}
# remove coverage check from test file
sed -e 's/cov.stop()/pass/' -e '/cov/ d' %SOURCE1 > $(basename %SOURCE1)
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v test_socketio.py
%files %{python_files}
%doc LICENSE README.md
%{python_sitelib}/*
%changelog