lovekit 4.1.0__tar.gz → 4.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lovekit
3
- Version: 4.1.0
3
+ Version: 4.2.0
4
4
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: aiohttp<4,>=3.9.5
7
- Requires-Dist: arkitekt-spec>=3.4
8
- Requires-Dist: fakts>=5.4
7
+ Requires-Dist: arkitekt-spec>=3.19.1
8
+ Requires-Dist: fakts>=6.1
9
9
  Requires-Dist: livekit>=1.0
10
10
  Requires-Dist: numpy>=1.26
11
11
  Requires-Dist: rath>=4.1.1
@@ -57,8 +57,8 @@ def lovekit(
57
57
  link=LovekitLinkComposition(
58
58
  auth=FaktsAuthLink(token_loader=tokens),
59
59
  split=SplitLink(
60
- left=AIOHttpLink(endpoint_url=lovekit.to_http_path("graphql"), proxy=lovekit.proxy),
61
- right=GraphQLWSLink(ws_endpoint_url=lovekit.to_ws_path("graphql"), proxy=lovekit.proxy),
60
+ left=AIOHttpLink(endpoint_url=lovekit.to_http_path("graphql"), proxy=lovekit.proxy, ssl_context=lovekit.ssl_context()),
61
+ right=GraphQLWSLink(ws_endpoint_url=lovekit.to_ws_path("graphql"), proxy=lovekit.proxy, ssl_context=lovekit.ssl_context()),
62
62
  split=lambda o: o.node.operation != OperationType.SUBSCRIPTION,
63
63
  ),
64
64
  )
@@ -36,6 +36,12 @@ async def aroom_options(alias: Alias) -> tuple[str, Any]:
36
36
  from livekit import rtc
37
37
 
38
38
  if not alias.is_mesh():
39
+ # LiveKit's SDK (rustls) reads its roots only from SSL_CERT_FILE: a pinned
40
+ # SFU's hub certificate is added to them there.
41
+ if alias.is_pinned():
42
+ from arkitekt_spec.declare import tls
43
+
44
+ tls.trust_natively(alias.certificates)
39
45
  return alias.to_ws_path(), rtc.RoomOptions()
40
46
  local = await alias.aforward()
41
47
  turn = await alias.aturn()
@@ -12,11 +12,11 @@ dependencies = [
12
12
  "numpy>=1.26",
13
13
  "rath>=4.1.1",
14
14
  # The service and structures are declared with arkitekt-spec.
15
- "arkitekt-spec>=3.4",
15
+ "arkitekt-spec>=3.19.1",
16
16
  # The GraphQL-WS link the client subscribes through; it came through rekuest before.
17
17
  "websockets>=15.0.1",
18
18
  # The service wiring (Alias, Require, FaktsAuthLink); it came through rekuest before.
19
- "fakts>=5.4",
19
+ "fakts>=6.1",
20
20
  ]
21
21
 
22
22
  [project.optional-dependencies]
@@ -30,6 +30,7 @@ dev-dependencies = [
30
30
  "python-semantic-release>=9.21.0",
31
31
  "pytest-aiohttp>=1.0.4,<2",
32
32
  "ruff>0.11",
33
+ "turms>=2.3.0",
33
34
  "dokker>=2.8",
34
35
  "websockets>=15.0.1",
35
36
  "basedpyright>=1.21",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes