Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Nov 7, 2023
1 parent 1f7ce70 commit 2ca8de1
Show file tree
Hide file tree
Showing 20 changed files with 4,327 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
path = livekit-rtc/rust-sdks
url = https://github.com/livekit/rust-sdks
[submodule "livekit-api/protocol"]
path = livekit-api/protocol
path = livekit-protocol/protocol
url = https://github.com/livekit/protocol
1 change: 0 additions & 1 deletion livekit-api/protocol
Submodule protocol deleted from 525419
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
# This script requires protobuf-compiler and https://github.com/nipunn1313/mypy-protobuf

API_PROTOCOL=./protocol
API_OUT_PYTHON=./livekit/api/_proto
API_OUT_PYTHON=./livekit/protocol

# api

protoc \
-I=$API_PROTOCOL \
--python_out=$API_OUT_PYTHON \
Expand All @@ -29,11 +27,12 @@ protoc \
$API_PROTOCOL/livekit_room.proto \
$API_PROTOCOL/livekit_webhook.proto \
$API_PROTOCOL/livekit_ingress.proto \
$API_PROTOCOL/livekit_models.proto
$API_PROTOCOL/livekit_models.proto \
$API_PROTOCOL/livekit_agent.proto


touch -a "$API_OUT_PYTHON/__init__.py"

for f in "$API_OUT_PYTHON"/*.py "$API_OUT_PYTHON"/*.pyi; do
perl -i -pe 's|^(import (livekit_egress_pb2\|livekit_room_pb2\|livekit_webhook_pb2\|livekit_ingress_pb2\|livekit_models_pb2))|from . $1|g' "$f"
perl -i -pe 's|^(import (livekit_egress_pb2\|livekit_room_pb2\|livekit_webhook_pb2\|livekit_ingress_pb2\|livekit_models_pb2\|livekit_agent_pb2))|from . $1|g' "$f"
done
9 changes: 9 additions & 0 deletions livekit-protocol/livekit/protocol/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from . import livekit_agent_pb2 as agent

Check failure on line 1 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:1:36: F401 `.livekit_agent_pb2` imported but unused
from . import livekit_egress_pb2 as egress

Check failure on line 2 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:2:37: F401 `.livekit_egress_pb2` imported but unused
from . import livekit_ingress_pb2 as ingress

Check failure on line 3 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:3:38: F401 `.livekit_ingress_pb2` imported but unused
from . import livekit_models_pb2 as models

Check failure on line 4 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:4:37: F401 `.livekit_models_pb2` imported but unused
from . import livekit_room_pb2 as room

Check failure on line 5 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:5:35: F401 `.livekit_room_pb2` imported but unused
from . import livekit_webhook_pb2 as webhook

Check failure on line 6 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:6:38: F401 `.livekit_webhook_pb2` imported but unused

from .version import __version__

Check failure on line 8 in livekit-protocol/livekit/protocol/__init__.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

livekit-protocol/livekit/protocol/__init__.py:8:22: F401 `.version.__version__` imported but unused

54 changes: 54 additions & 0 deletions livekit-protocol/livekit/protocol/livekit_agent_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ca8de1

Please sign in to comment.