Skip to content

Commit c209612

Browse files
committed
chore: upgrade websockets dependency to support 15+ and update import statements
1 parent c020d05 commit c209612

3 files changed

Lines changed: 83 additions & 5 deletions

File tree

ably/transport/websockettransport.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
from ably.util.eventemitter import EventEmitter
1212
from ably.util.exceptions import AblyException
1313
from ably.util.helper import Timer, unix_time_ms
14-
from websockets.client import WebSocketClientProtocol, connect as ws_connect
15-
from websockets.exceptions import ConnectionClosedOK, WebSocketException
14+
from websockets import WebSocketClientProtocol, connect as ws_connect, ConnectionClosedOK, WebSocketException
1615

1716
if TYPE_CHECKING:
1817
from ably.realtime.connection import ConnectionManager

poetry.lock

Lines changed: 80 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ httpx = [
4040
h2 = "^4.1.0" # required for httx package, HTTP2 communication
4141
websockets = [
4242
{ version = ">= 10.0, < 12.0", python = "~3.7" },
43-
{ version = ">= 12.0, < 14.0", python = "^3.8" },
43+
{ version = ">= 12.0, < 15.0", python = "~3.8" },
44+
{ version = ">= 15.0, < 16.0", python = "^3.9" },
4445
]
4546
pyee = [
4647
{ version = "^9.0.4", python = "~3.7" },

0 commit comments

Comments
 (0)