Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-websocket-client for
openSUSE:Factory checked in at 2022-11-15 13:18:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-websocket-client (Old)
and /work/SRC/openSUSE:Factory/.python-websocket-client.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-websocket-client"
Tue Nov 15 13:18:22 2022 rev:18 rq:1035647 version:1.4.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-websocket-client/python-websocket-client.changes
2022-10-25 11:18:55.205992049 +0200
+++
/work/SRC/openSUSE:Factory/.python-websocket-client.new.1597/python-websocket-client.changes
2022-11-15 13:21:08.228711451 +0100
@@ -1,0 +2,8 @@
+Wed Nov 9 19:43:22 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to 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
+
+-------------------------------------------------------------------
Old:
----
websocket-client-1.4.1.tar.gz
New:
----
websocket-client-1.4.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-websocket-client.spec ++++++
--- /var/tmp/diff_new_pack.URdoYq/_old 2022-11-15 13:21:08.612713433 +0100
+++ /var/tmp/diff_new_pack.URdoYq/_new 2022-11-15 13:21:08.632713537 +0100
@@ -25,7 +25,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-websocket-client
-Version: 1.4.1
+Version: 1.4.2
Release: 0
Summary: WebSocket client implementation
License: LGPL-2.1-only
++++++ websocket-client-1.4.1.tar.gz -> websocket-client-1.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/ChangeLog
new/websocket-client-1.4.2/ChangeLog
--- old/websocket-client-1.4.1/ChangeLog 2022-09-04 21:56:26.000000000
+0200
+++ new/websocket-client-1.4.2/ChangeLog 2022-11-04 05:01:44.000000000
+0100
@@ -1,6 +1,11 @@
ChangeLog
============
+- 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
+
- 1.4.1
- Fix stack growth bug when `run_forever` reconnects (#854)
- Add doctest CI for sphinx docs code examples (d150099)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/PKG-INFO
new/websocket-client-1.4.2/PKG-INFO
--- old/websocket-client-1.4.1/PKG-INFO 2022-09-04 21:59:51.740593200 +0200
+++ new/websocket-client-1.4.2/PKG-INFO 2022-11-04 05:02:49.798043000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: websocket-client
-Version: 1.4.1
+Version: 1.4.2
Summary: WebSocket client for Python with low level API options
Home-page: https://github.com/websocket-client/websocket-client.git
Download-URL: https://github.com/websocket-client/websocket-client/releases
@@ -17,6 +17,7 @@
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
@@ -105,10 +106,17 @@
Most real-world WebSockets situations involve longer-lived connections.
The WebSocketApp `run_forever` loop will automatically try to reconnect
to an open WebSocket connection when a network
-connection is lost if it is provided with a dispatcher parameter,
-and provides a variety of event-based connection controls.
+connection is lost if it is provided with:
+
+- a `dispatcher` argument (async dispatcher like rel or pyevent)
+- a non-zero `reconnect` argument (delay between disconnection and attempted
reconnection)
+
+`run_forever` provides a variety of event-based connection controls
+using callbacks like `on_message` and `on_error`.
`run_forever` does not automatically reconnect if the server
-closes the WebSocket. Customizing behavior when the server closes
+closes the WebSocket gracefully (returning
+[a standard websocket close
code](https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1)).
+Customizing behavior when the server closes
the WebSocket should be handled in the `on_close` callback.
This example uses [rel](https://github.com/bubbleboy14/registeredeventlistener)
for the dispatcher to provide automatic reconnection.
@@ -139,7 +147,7 @@
on_error=on_error,
on_close=on_close)
- ws.run_forever(dispatcher=rel) # Set dispatcher to automatic reconnection
+ ws.run_forever(dispatcher=rel, reconnect=5) # Set dispatcher to automatic
reconnection, 5 second reconnect delay if connection closed unexpectedly
rel.signal(2, rel.abort) # Keyboard Interrupt
rel.dispatch()
```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/README.md
new/websocket-client-1.4.2/README.md
--- old/websocket-client-1.4.1/README.md 2022-08-26 14:51:50.000000000
+0200
+++ new/websocket-client-1.4.2/README.md 2022-10-26 03:38:57.000000000
+0200
@@ -73,10 +73,17 @@
Most real-world WebSockets situations involve longer-lived connections.
The WebSocketApp `run_forever` loop will automatically try to reconnect
to an open WebSocket connection when a network
-connection is lost if it is provided with a dispatcher parameter,
-and provides a variety of event-based connection controls.
+connection is lost if it is provided with:
+
+- a `dispatcher` argument (async dispatcher like rel or pyevent)
+- a non-zero `reconnect` argument (delay between disconnection and attempted
reconnection)
+
+`run_forever` provides a variety of event-based connection controls
+using callbacks like `on_message` and `on_error`.
`run_forever` does not automatically reconnect if the server
-closes the WebSocket. Customizing behavior when the server closes
+closes the WebSocket gracefully (returning
+[a standard websocket close
code](https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1)).
+Customizing behavior when the server closes
the WebSocket should be handled in the `on_close` callback.
This example uses [rel](https://github.com/bubbleboy14/registeredeventlistener)
for the dispatcher to provide automatic reconnection.
@@ -107,7 +114,7 @@
on_error=on_error,
on_close=on_close)
- ws.run_forever(dispatcher=rel) # Set dispatcher to automatic reconnection
+ ws.run_forever(dispatcher=rel, reconnect=5) # Set dispatcher to automatic
reconnection, 5 second reconnect delay if connection closed unexpectedly
rel.signal(2, rel.abort) # Keyboard Interrupt
rel.dispatch()
```
Binary files
old/websocket-client-1.4.1/examples/__pycache__/echo_client.cpython-310.pyc and
new/websocket-client-1.4.2/examples/__pycache__/echo_client.cpython-310.pyc
differ
Binary files
old/websocket-client-1.4.1/examples/__pycache__/echoapp_client.cpython-310.pyc
and
new/websocket-client-1.4.2/examples/__pycache__/echoapp_client.cpython-310.pyc
differ
Binary files
old/websocket-client-1.4.1/examples/__pycache__/rel_client.cpython-310.pyc and
new/websocket-client-1.4.2/examples/__pycache__/rel_client.cpython-310.pyc
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/setup.py
new/websocket-client-1.4.2/setup.py
--- old/websocket-client-1.4.1/setup.py 2022-09-04 21:56:58.000000000 +0200
+++ new/websocket-client-1.4.2/setup.py 2022-11-04 04:57:54.000000000 +0100
@@ -21,7 +21,7 @@
limitations under the License.
"""
-VERSION = "1.4.1"
+VERSION = "1.4.2"
install_requires = []
tests_require = []
@@ -51,6 +51,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/websocket/__init__.py
new/websocket-client-1.4.2/websocket/__init__.py
--- old/websocket-client-1.4.1/websocket/__init__.py 2022-09-04
21:57:07.000000000 +0200
+++ new/websocket-client-1.4.2/websocket/__init__.py 2022-11-04
04:58:05.000000000 +0100
@@ -23,4 +23,4 @@
from ._logging import *
from ._socket import *
-__version__ = "1.4.1"
+__version__ = "1.4.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/websocket/_app.py
new/websocket-client-1.4.2/websocket/_app.py
--- old/websocket-client-1.4.1/websocket/_app.py 2022-09-04
21:52:06.000000000 +0200
+++ new/websocket-client-1.4.2/websocket/_app.py 2022-11-04
04:51:47.000000000 +0100
@@ -5,6 +5,7 @@
import time
import traceback
from ._abnf import ABNF
+from ._url import parse_url
from ._core import WebSocket, getdefaulttimeout
from ._exceptions import *
from . import _logging
@@ -287,12 +288,12 @@
HTTP proxy host name.
http_proxy_port: int or str
HTTP proxy port. If not set, set to 80.
+ http_no_proxy: list
+ Whitelisted host names that don't use the proxy.
http_proxy_timeout: int or float
HTTP proxy timeout, default is 60 sec as per python-socks.
http_proxy_auth: tuple
HTTP proxy auth information. tuple of username and password.
Default is None.
- http_no_proxy: list
- Whitelisted host names that don't use the proxy.
skip_utf8_validation: bool
skip utf8 validation.
host: str
@@ -303,6 +304,10 @@
customize reading data from socket.
suppress_origin: bool
suppress outputting origin header.
+ proxy_type: str
+ type of proxy from: http, socks4, socks4a, socks5, socks5h
+ reconnect: int
+ delay interval when reconnecting
Returns
-------
@@ -437,7 +442,7 @@
teardown()
custom_dispatcher = bool(dispatcher)
- dispatcher = self.create_dispatcher(ping_timeout, dispatcher, not not
sslopt)
+ dispatcher = self.create_dispatcher(ping_timeout, dispatcher,
parse_url(self.url)[3])
if ping_interval:
event = threading.Event()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/websocket/_core.py
new/websocket-client-1.4.2/websocket/_core.py
--- old/websocket-client-1.4.1/websocket/_core.py 2022-08-24
20:36:28.000000000 +0200
+++ new/websocket-client-1.4.2/websocket/_core.py 2022-10-26
03:38:57.000000000 +0200
@@ -46,8 +46,11 @@
>>> import websocket
>>> ws = websocket.WebSocket()
- >>> ws.connect("ws://echo.websocket.org")
+ >>> ws.connect("ws://echo.websocket.events")
+ >>> ws.recv()
+ 'echo.websocket.events sponsored by Lob.com'
>>> ws.send("Hello, Server")
+ 19
>>> ws.recv()
'Hello, Server'
>>> ws.close()
@@ -203,7 +206,7 @@
If you set "header" list object, you can set your own custom header.
>>> ws = WebSocket()
- >>> ws.connect("ws://echo.websocket.org/",
+ >>> ws.connect("ws://echo.websocket.events",
... header=["User-Agent: MyProgram",
... "x-custom: header"])
@@ -283,7 +286,7 @@
"""
Send the data frame.
- >>> ws = create_connection("ws://echo.websocket.org/")
+ >>> ws = create_connection("ws://echo.websocket.events")
>>> frame = ABNF.create_frame("Hello", ABNF.OPCODE_TEXT)
>>> ws.send_frame(frame)
>>> cont_frame = ABNF.create_frame("My name is ", ABNF.OPCODE_CONT, 0)
@@ -543,7 +546,7 @@
You can customize using 'options'.
If you set "header" list object, you can set your own custom header.
- >>> conn = create_connection("ws://echo.websocket.org/",
+ >>> conn = create_connection("ws://echo.websocket.events",
... header=["User-Agent: MyProgram",
... "x-custom: header"])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/websocket/_handshake.py
new/websocket-client-1.4.2/websocket/_handshake.py
--- old/websocket-client-1.4.1/websocket/_handshake.py 2022-05-08
21:58:55.000000000 +0200
+++ new/websocket-client-1.4.2/websocket/_handshake.py 2022-10-26
03:38:57.000000000 +0200
@@ -101,7 +101,6 @@
# Append Sec-WebSocket-Key & Sec-WebSocket-Version if not manually
specified
if not options.get('header') or 'Sec-WebSocket-Key' not in
options['header']:
- key = _create_sec_websocket_key()
headers.append("Sec-WebSocket-Key: %s" % key)
else:
key = options['header']['Sec-WebSocket-Key']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/websocket-client-1.4.1/websocket/tests/test_app.py
new/websocket-client-1.4.2/websocket/tests/test_app.py
--- old/websocket-client-1.4.1/websocket/tests/test_app.py 2022-09-04
21:52:06.000000000 +0200
+++ new/websocket-client-1.4.2/websocket/tests/test_app.py 2022-11-04
04:51:47.000000000 +0100
@@ -191,7 +191,7 @@
""" Test WebSocketApp binary opcode
"""
# The lack of wss:// in the URL below is on purpose
- app = ws.WebSocketApp('streaming.vn.teslamotors.com/streaming/')
+ app = ws.WebSocketApp('wss://streaming.vn.teslamotors.com/streaming/')
app.run_forever(ping_interval=2, ping_timeout=1, ping_payload="Ping
payload")
@unittest.skipUnless(TEST_WITH_INTERNET, "Internet-requiring tests are
disabled")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/websocket-client-1.4.1/websocket/tests/test_websocket.py
new/websocket-client-1.4.2/websocket/tests/test_websocket.py
--- old/websocket-client-1.4.1/websocket/tests/test_websocket.py
2022-02-25 22:31:46.000000000 +0100
+++ new/websocket-client-1.4.2/websocket/tests/test_websocket.py
2022-10-26 03:38:57.000000000 +0200
@@ -432,7 +432,7 @@
self.assertRaises(ws._exceptions.WebSocketBadStatusException,
websock3.connect, "wss://api.bitfinex.com/ws/2",
cookie="chocolate",
origin="testing_websockets.com",
- host="echo.websocket.org/websocket-client-test",
+ host="echo.websocket.events/websocket-client-test",
subprotocols=["testproto"],
connection="Upgrade",
header={"CustomHeader1":"123",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/websocket-client-1.4.1/websocket_client.egg-info/PKG-INFO
new/websocket-client-1.4.2/websocket_client.egg-info/PKG-INFO
--- old/websocket-client-1.4.1/websocket_client.egg-info/PKG-INFO
2022-09-04 21:59:51.000000000 +0200
+++ new/websocket-client-1.4.2/websocket_client.egg-info/PKG-INFO
2022-11-04 05:02:49.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: websocket-client
-Version: 1.4.1
+Version: 1.4.2
Summary: WebSocket client for Python with low level API options
Home-page: https://github.com/websocket-client/websocket-client.git
Download-URL: https://github.com/websocket-client/websocket-client/releases
@@ -17,6 +17,7 @@
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
@@ -105,10 +106,17 @@
Most real-world WebSockets situations involve longer-lived connections.
The WebSocketApp `run_forever` loop will automatically try to reconnect
to an open WebSocket connection when a network
-connection is lost if it is provided with a dispatcher parameter,
-and provides a variety of event-based connection controls.
+connection is lost if it is provided with:
+
+- a `dispatcher` argument (async dispatcher like rel or pyevent)
+- a non-zero `reconnect` argument (delay between disconnection and attempted
reconnection)
+
+`run_forever` provides a variety of event-based connection controls
+using callbacks like `on_message` and `on_error`.
`run_forever` does not automatically reconnect if the server
-closes the WebSocket. Customizing behavior when the server closes
+closes the WebSocket gracefully (returning
+[a standard websocket close
code](https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1)).
+Customizing behavior when the server closes
the WebSocket should be handled in the `on_close` callback.
This example uses [rel](https://github.com/bubbleboy14/registeredeventlistener)
for the dispatcher to provide automatic reconnection.
@@ -139,7 +147,7 @@
on_error=on_error,
on_close=on_close)
- ws.run_forever(dispatcher=rel) # Set dispatcher to automatic reconnection
+ ws.run_forever(dispatcher=rel, reconnect=5) # Set dispatcher to automatic
reconnection, 5 second reconnect delay if connection closed unexpectedly
rel.signal(2, rel.abort) # Keyboard Interrupt
rel.dispatch()
```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/websocket-client-1.4.1/websocket_client.egg-info/SOURCES.txt
new/websocket-client-1.4.2/websocket_client.egg-info/SOURCES.txt
--- old/websocket-client-1.4.1/websocket_client.egg-info/SOURCES.txt
2022-09-04 21:59:51.000000000 +0200
+++ new/websocket-client-1.4.2/websocket_client.egg-info/SOURCES.txt
2022-11-04 05:02:49.000000000 +0100
@@ -7,9 +7,6 @@
examples/echo_client.py
examples/echoapp_client.py
examples/rel_client.py
-examples/__pycache__/echo_client.cpython-310.pyc
-examples/__pycache__/echoapp_client.cpython-310.pyc
-examples/__pycache__/rel_client.cpython-310.pyc
websocket/__init__.py
websocket/_abnf.py
websocket/_app.py