Skip to content

mypy-protobuf v3.5: Fix and run protobuf generation scripts #10915

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

Merged
merged 7 commits into from
Oct 19, 2023

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Oct 19, 2023

@JelleZijlstra Suggested update to your PR, this should fix everything in both protobuf generation scripts (except PYTHON_PROTOBUF_VERSION being 4.21.8)

  • Bumped protobuf to 3.5 in both generation scripts
  • Fixed the METADATA.toml update
  • Run formatters and update metadata.toml in tensorflow protobuff's script
  • Fixed sync_tensorflow_protobuf_stubs.sh to work when running from any location
  • Make it easier to rerun sync_tensorflow_protobuf_stubs.sh when it failed midway (the repo clone is extremely slow, even with the optimsation I added)
  • order entries alphabetically
  • Added tensorflow/tsl/protobuf/*.proto as it is a dependency of generated modules
  • Removed tensorflow/core/protobuf/coordination_service_pb2.pyi from the suppressions as it is no longer a generated module

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JelleZijlstra JelleZijlstra merged commit 7be9878 into python:proto35 Oct 19, 2023
@Avasam Avasam deleted the proto35 branch October 19, 2023 02:42
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