Sync from SUSE:SLFO:Main python-wsproto revision 07b99512566dca1ba5b86892ac25f749

This commit is contained in:
Adrian Schröter 2024-05-03 23:32:09 +02:00
commit 8e5d7f34a9
4 changed files with 229 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

129
python-wsproto.changes Normal file
View File

@ -0,0 +1,129 @@
-------------------------------------------------------------------
Fri Apr 21 12:38:57 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:46:00 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Wed Feb 1 16:38:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
- no longer supports python 3.6, we can drop the 3.6 specific requires
-------------------------------------------------------------------
Mon Oct 3 16:14:29 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.2.0:
* Bugfix: When a close frame with status NO_STATUS_RCVD is sent, send
and empty payload.
* Bugfix: Changing both encoding and decoding of the Host, from ascii
to idna.
* Bugfix: Support multiple Sec-WebSocket-Extensions and
Sec-WebSocket-Protocol headers.
* Accept bytes alongside string as path argument in
initiate_upgrade_connection.
* Check the state when sending events, raising if the event cannot be
sent in the current state.
* Send an empty payload for NO_STATUS_RCVD.
* Added support for Python 3.10.
* Drop support for Python 3.6, meaning the minimum supported version
is Python 3.7.0.
* Various type checking and code linting improvements.
- drop 170.patch (upstream)
-------------------------------------------------------------------
Mon Feb 21 12:08:49 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add 170.patch to improve python 3.10 compatibility
- reenable tests
-------------------------------------------------------------------
Thu Feb 17 21:00:48 UTC 2022 - Dirk Müller <dmueller@suse.com>
- filter two irrelevant tests for h11 0.13.0 (gh#python-hyper/wsproto#169)
- fix version dependency on h11
-------------------------------------------------------------------
Mon Jan 25 11:33:52 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Fix Tumbleweed Python 3.6 build
-------------------------------------------------------------------
Sat Nov 28 09:27:15 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Activate test suite
-------------------------------------------------------------------
Mon Nov 23 10:21:57 UTC 2020 - aloisio@gmx.com
- Update to version 1.0.0
* Prevent invalid window bit sizes.
* Added support for Python 3.8 and 3.9.
-------------------------------------------------------------------
Sun Oct 11 17:11:49 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Add missing runtime dependency on dataclasses
-------------------------------------------------------------------
Sat Aug 10 14:36:31 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 0.15.0
* Drop support for Python 2. Please pin to ~= 0.14.0 if you
support Python 2.
* Drop support for Python 3.5, meaning the minimum supported
version is Python 3.6.1.
* Switch events to be dataclass based, otherwise the API is
consistent.
* Add type hints throughout and support PEP 561 via a py.typed
file. This should allow projects that use wsproto to type
check their usage of wsproto.
* Bugfix prevent the test folder being installed as a package
called test.
* Explicitly require Host header in handshake.
* Drop wsaccel support and utilise the aiohttp/@willmcgugan
masking method. wsaccel is unmaintained and this new maksing
method is almost as quick.
- Disable python2 build
-------------------------------------------------------------------
Fri May 31 05:16:10 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 0.14.1
* Loosen the h11 requirement to >= 0.8.1 as wsproto is
compatible with 0.9 onwards.
* Stop installing a "test" package on installation.
-------------------------------------------------------------------
Tue Apr 9 15:09:15 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 0.14.0
* bugfix release, see CHANGELOG.rst
0.13.0
* many changes in connection management, see CHANGELOG.rst
-------------------------------------------------------------------
Tue Dec 4 21:08:16 UTC 2018 - aloisio@gmx.com
- Update to version 0.12.0
* Support h11 ~0.8.1.
* Support Python 3.7.
* Make the close-handshake more explicit, by sending a close
frame on reciept of a close frame.
* Bugfix fix deflate after a non-compressable message.
* Bugfix connection header acceptance, by accepting Connection
header values that are comma separated lists.
-------------------------------------------------------------------
Tue Dec 4 12:56:11 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Sun Feb 25 16:36:25 UTC 2018 - aloisio@gmx.com
- Initial package (0.11.0)

74
python-wsproto.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package python-wsproto
#
# Copyright (c) 2023 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-wsproto
Version: 1.2.0
Release: 0
Summary: WebSockets state-machine based protocol implementation
License: MIT
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/wsproto
Source: https://files.pythonhosted.org/packages/source/w/wsproto/wsproto-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-h11 >= 0.9.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module h11 >= 0.9.0}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
This module contains a pure-Python implementation of a WebSocket
protocol stack. It's written from the ground up to be embeddable in
whatever program you choose to use, ensuring that you can
communicate via WebSockets, as defined in RFC6455
<https://tools.ietf.org/html/rfc6455>, regardless of your
programming paradigm.
This module does not provide a parsing layer, a network layer, or
any rules about concurrency. Instead, it's a purely in-memory
solution, defined in terms of data actions and WebSocket frames.
RFC6455 and Compression Extensions for WebSocket via RFC7692
<https://tools.ietf.org/html/rfc7692> are fully supported.
%prep
%autosetup -p1 -n wsproto-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog

BIN
wsproto-1.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.