Skip to content

Commit 70deb94

Browse files
authored
Replace Proto modules with the python path (#1156)
* Replace the module in protos with the correct path * Remove print
1 parent 788d391 commit 70deb94

File tree

42 files changed

+752
-749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+752
-749
lines changed

scripts/gen_protos.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
partial(
4343
re.compile(r"from temporal\.sdk\.core\.").sub, r"from temporalio.bridge.proto."
4444
),
45+
partial(
46+
re.compile(r"'__module__' : 'temporal\.api\.").sub,
47+
r"'__module__' : 'temporalio.api.",
48+
),
4549
]
4650

4751
pyi_fixes = [
@@ -60,7 +64,6 @@ def fix_generated_output(base_path: Path):
6064
- protoc doesn't generate the correct import paths
6165
(https://github.com/protocolbuffers/protobuf/issues/1491)
6266
"""
63-
6467
imports: Mapping[str, List[str]] = collections.defaultdict(list)
6568
for p in base_path.iterdir():
6669
if p.is_dir():

temporalio/api/activity/v1/message_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/api/batch/v1/message_pb2.py

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

temporalio/api/cloud/account/v1/message_pb2.py

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

0 commit comments

Comments
 (0)