asyncrpc/client: Fix websockets minimum version for python 3.10
PATCH 1/1 asyncrpc/client: Fix websockets minimum version for python 3.10
python 3.10 support is only available in websockets 10.0 and later:
https://github.com/python-websockets/websockets/commit/08d8011132ba038b3f6c4d591189b57af4c9f147
Update the version for this case. This avoids failures on Ubuntu 22.04.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/asyncrpc/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
lib/bb/asyncrpc/client.py +3 -1
@@ -25,7 +25,9 @@ ADDR_TYPE_TCP = 1 ADDR_TYPE_WS = 2 WEBSOCKETS_MIN_VERSION = (9, 1) - +# Need websockets 10 with python 3.10+ +if sys.version_info >= (3, 10, 0): + WEBSOCKETS_MIN_VERSION = (10, 0) def parse_address(addr): if addr.startswith(UNIX_PREFIX):
Signature · 1 line
2.40.1