Adding README.md, .gitignore, .gitattributes; adding python-websocket-client files
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
||||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_buildconfig-*
|
||||||
|
_buildinfo-*
|
||||||
|
*.obscpio
|
||||||
|
python-websocket-client/
|
||||||
9
README.md
Normal file
9
README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# python-websocket-client
|
||||||
|
|
||||||
|
URL: [websocket-client](https://pypi.org/project/websocket-client/)
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
[github](https://github.com/websocket-client/websocket-client.git)
|
||||||
|
|
||||||
|
websocket-client is a WebSocket client for Python. It provides access to low level APIs for WebSockets. websocket-client implements version hybi-13 of the WebSocket protocol. This client does not currently support the permessage-deflate extension from RFC 7692.
|
||||||
111
python-websocket-client.changes
Normal file
111
python-websocket-client.changes
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 24 19:16:51 UTC 2024 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Update to upstream version 1.8.0
|
||||||
|
* Added `on_reconnect` parameter to WebSocketApp to handle callback
|
||||||
|
ambiguity (#972)
|
||||||
|
* Improve handling of SSLEOFError and use reconnect bool (#961)
|
||||||
|
* Minor linting and docs CI build upgrades (981c00e, 75ba91a, bec2608)
|
||||||
|
* 1.7.0
|
||||||
|
- Renamed `mask` variable in ABNF to prevent name collision with `mask()`
|
||||||
|
function (9b51f73)
|
||||||
|
- Fixed old http import of HTTPStatus in _handshake.py (9b51f73)
|
||||||
|
- Add `send_text()` and `send_bytes()` to _app.py (#953)
|
||||||
|
- Improved typehint support (#953, 9b51f73, 8b73d00)
|
||||||
|
- General readability improvements, made all string concatenations use
|
||||||
|
f-strings (#909, 780584f, 3eabc6e)
|
||||||
|
- Applied black formatting style to code (da7f286)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 9 16:07:09 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Update to upstream version 1.6.4
|
||||||
|
* Fix #952, add support for HTTP 307 and 308 redirect codes (69468ad)
|
||||||
|
* 1.6.3
|
||||||
|
- Fix type hints issues (#949)
|
||||||
|
- Add support for Python beta release 3.12 in CI (#946)
|
||||||
|
- Add maintainer email in setup.py (3d464fc)
|
||||||
|
* 1.6.2
|
||||||
|
- Add support for SSLKEYLOGFILE environment variable (#943)
|
||||||
|
- Add support for callable header arguments (#932)
|
||||||
|
- Change handling of proxy environment variables, is_secure set to true now prevents http_proxy from getting used (#929)
|
||||||
|
* 1.6.1
|
||||||
|
- Fix Dispatcher keyboard interrupt. Should solve reconnect loop with rel (#924)
|
||||||
|
* 1.6.0
|
||||||
|
- Fix teardown issue when ping thread is not properly ended (#918)
|
||||||
|
- Fix double ping wait time on first ping (#912)
|
||||||
|
- Minor type hints improvements (eda6724, 54b3013)
|
||||||
|
* 1.5.3
|
||||||
|
- Add logic to avoid error in the case where content-length header does
|
||||||
|
not exist, bug introduced in 1.5.2 (#911)
|
||||||
|
- Fix wsdump.py script typing, bug introduced in 1.5.2 (#914)
|
||||||
|
* 1.5.2
|
||||||
|
- Add type hints (#908)
|
||||||
|
- Fix pytype errors (#906)
|
||||||
|
- Fix args passed to logging function (#898)
|
||||||
|
- Standardize PEP 3101 formatting (c6a445f)
|
||||||
|
- Add more verbose exception for unsuccessful handshake for #900 (f85ae1f)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 19 17:39:29 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Update to upstream version 1.5.1
|
||||||
|
* Fix logic bug that can cause disconnects (#893)
|
||||||
|
- Update to upstream version 1.5.0
|
||||||
|
* Refactor and improve ping/pong logic to resolve several issues, including
|
||||||
|
an infinite loop issue during reconnect (#862)
|
||||||
|
* Fix issue where `skip_utf8_validation = True` is ignored (#886)
|
||||||
|
* Fix issue where sslopt `is_ssl` is ignored (#875)
|
||||||
|
* Downgrade "websocket connected" message from logging.warning to
|
||||||
|
logging.info (#888)
|
||||||
|
* Update github actions to newer versions (669fe1b)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 14 21:21:43 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Update to upstream version 1.4.2
|
||||||
|
* create_dispatcher is determined by URL ws/wss, NOT by presence of sslopt
|
||||||
|
args, to maintain consistency (#875)
|
||||||
|
* Remove redundant key generation line (#864)
|
||||||
|
* Updated docs to fix old links and updated CI to include Python 3.11
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 11 19:06:52 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Update to upstream version 1.4.1
|
||||||
|
* Oct 6, 2022
|
||||||
|
- Possible* Redundancy In Key Generation (#864) …
|
||||||
|
* Sep 4, 2022
|
||||||
|
- fix for stack growth on reconnect (#854) …
|
||||||
|
* Sep 3, 2022
|
||||||
|
- 1.4.1
|
||||||
|
* Aug 25, 2022
|
||||||
|
- Clarify run_forever case when server closes WebSocket
|
||||||
|
- Clean README, run doctest CI on README examples
|
||||||
|
* Aug 24, 2022
|
||||||
|
- Replace 'coming soon' in docs with valid examples
|
||||||
|
- Fix doctest CI errors
|
||||||
|
- revert fc525b1, http proxy uses URL port unlike SOCKS proxies
|
||||||
|
- Fix path for doctest CI
|
||||||
|
- Fix bug that set http proxy to port 80
|
||||||
|
- Add doctest CI to sphinx docs
|
||||||
|
- Allow passing http_proxy_timeout to run_forever. (#842) …
|
||||||
|
- reconnect (#838) …
|
||||||
|
* Aug 23, 2022
|
||||||
|
- 1.4.0
|
||||||
|
- Add rel install note in README
|
||||||
|
* Jun 19, 2022
|
||||||
|
- 1.3.3
|
||||||
|
* Jun 1, 2022
|
||||||
|
- Fix unclosed socket when 'error.errno in eConnRefused'. (#826)
|
||||||
|
* May 9, 2022
|
||||||
|
- Add utf8 encoding error workaround
|
||||||
|
* May 8, 2022
|
||||||
|
- update dict access (#818) …
|
||||||
|
* Mar 28, 2022
|
||||||
|
- 1.3.2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 4 22:29:39 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Initial version '1.3.2' from upstream via py2pack.
|
||||||
77
python-websocket-client.spec
Normal file
77
python-websocket-client.spec
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-websocket-client
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define skip_python311 1
|
||||||
|
%define skip_python312 1
|
||||||
|
%define short_name websocket
|
||||||
|
|
||||||
|
Name: python-websocket-client
|
||||||
|
Version: 1.8.0
|
||||||
|
Release: 0
|
||||||
|
Summary: WebSocket client for Python with low level API options
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/websocket-client/websocket-client.git
|
||||||
|
#Source: https://files.pythonhosted.org/packages/source/w/websocket-client/websocket-client-%%{version}.tar.gz
|
||||||
|
Source: https://github.com/websocket-client/websocket-client/archive/refs/tags/v%{version}.tar.gz#/websocket-client-%{version}.tar.gz
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
Suggests: python-Sphinx >= 3.4
|
||||||
|
Suggests: python-sphinx_rtd_theme >= 0.5
|
||||||
|
Suggests: python-python-socks
|
||||||
|
Suggests: python-wsaccel
|
||||||
|
Suggests: python-websockets
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
WebSocket client for Python with low level API options
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n websocket-client-%{version}
|
||||||
|
find . -type f -exec sed -i 's@#!%{_bindir}/env python$@#!%{_bindir}/python@' {} +
|
||||||
|
find . -type f -exec sed -i 's@#!%{_bindir}/env python3$@#!%{_bindir}/python3@' {} +
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/wsdump
|
||||||
|
|
||||||
|
%python_expand sed -i '1d' %{buildroot}%{$python_sitelib}/websocket/_wsdump.py
|
||||||
|
%python_expand sed -i '1d' %{buildroot}%{$python_sitelib}/websocket/tests/echo-server.py
|
||||||
|
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative wsdump
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative wsdump
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc ChangeLog README.md
|
||||||
|
%license LICENSE
|
||||||
|
%python_alternative %{_bindir}/wsdump
|
||||||
|
%{python_sitelib}/%{short_name}*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
||||||
BIN
websocket-client-1.8.0.tar.gz
LFS
Normal file
BIN
websocket-client-1.8.0.tar.gz
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user