Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: python protoc postprocessing script needs to account for import statements in pb2_grpc.py files too #301

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

anitarua
Copy link
Contributor

@anitarua anitarua commented Nov 14, 2024

Currently, upgrading the proto dependencies in the python sdk fails due to wrong import syntax (import common_pb2 as common__pb2) in cachepubsub_pb2_grpc.py file of momento_wire_types.

This was because we were missing the case where common_pb2 (and other similar proto files) can be imported by pb2_grpc.py files too. This PR adds another substitution command for this situation.

@anitarua anitarua requested a review from a team November 14, 2024 00:34
@anitarua anitarua merged commit a289607 into main Nov 14, 2024
7 checks passed
@anitarua anitarua deleted the python-postprocessing-revision branch November 14, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants