From 8e5d7f34a95aaff8867cacfdc78f68e71333c897f30af5a5eb08484d26693bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:32:09 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-wsproto revision 07b99512566dca1ba5b86892ac25f749 --- .gitattributes | 23 ++++++++ python-wsproto.changes | 129 +++++++++++++++++++++++++++++++++++++++++ python-wsproto.spec | 74 +++++++++++++++++++++++ wsproto-1.2.0.tar.gz | 3 + 4 files changed, 229 insertions(+) create mode 100644 .gitattributes create mode 100644 python-wsproto.changes create mode 100644 python-wsproto.spec create mode 100644 wsproto-1.2.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/python-wsproto.changes b/python-wsproto.changes new file mode 100644 index 0000000..ab1026e --- /dev/null +++ b/python-wsproto.changes @@ -0,0 +1,129 @@ +------------------------------------------------------------------- +Fri Apr 21 12:38:57 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:46:00 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Wed Feb 1 16:38:58 UTC 2023 - Dirk Müller + +- 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 + +- 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 + +- add 170.patch to improve python 3.10 compatibility +- reenable tests + +------------------------------------------------------------------- +Thu Feb 17 21:00:48 UTC 2022 - Dirk Müller + +- 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 + +- Fix Tumbleweed Python 3.6 build + +------------------------------------------------------------------- +Sat Nov 28 09:27:15 UTC 2020 - John Vandenberg + +- 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 + +- Add missing runtime dependency on dataclasses + +------------------------------------------------------------------- +Sat Aug 10 14:36:31 UTC 2019 - Luigi Baldoni + +- 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 + +- 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 + +- 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 + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun Feb 25 16:36:25 UTC 2018 - aloisio@gmx.com + +- Initial package (0.11.0) diff --git a/python-wsproto.spec b/python-wsproto.spec new file mode 100644 index 0000000..3b17403 --- /dev/null +++ b/python-wsproto.spec @@ -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 +, 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 + 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 diff --git a/wsproto-1.2.0.tar.gz b/wsproto-1.2.0.tar.gz new file mode 100644 index 0000000..9d98d8b --- /dev/null +++ b/wsproto-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065 +size 53425