-
Notifications
You must be signed in to change notification settings - Fork 79
Add support for generating python proto code #110
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
Conversation
3ca3253
to
5394619
Compare
Signed-off-by: Kunjan Patel <kunjan@ucla.edu> Signed-off-by: Kunjan Patel <kunjanp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
In addition to the comments, a high-level question: are the __init__.py
files auto generated? (I'm assume the bazel command adds these, but just want to make sure).
…e. Add disrtribution wheel Signed-off-by: Kunjan Patel <kunjanp@google.com>
…e. Add disrtribution wheel Signed-off-by: Kunjan Patel <kunjanp@google.com>
Signed-off-by: Kunjan Patel <kunjanp@google.com>
Signed-off-by: Kunjan Patel <kunjanp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, overall LGTM.
Just a suggestion on how to refactor the function to support multi-languages.
Signed-off-by: Kunjan Patel <kunjanp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Overall LGTM, one comment about unifying requirements if possible.
input_dir = language_config.get_input_dir(bazel_bin, rule_dir) | ||
input_files = glob.glob(os.path.join(input_dir, language_config.generated_file_pattern)) | ||
output_dir = os.path.join(output, rule_dir) | ||
print(f"Moving {len(input_files)} generated files from {input_dir} to output_dir {output_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
print(f"Moving {len(input_files)} generated files from {input_dir} to output_dir {output_dir}") | |
print(f"Copying {len(input_files)} generated files from {input_dir} to output_dir {output_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why it got resolved.
Signed-off-by: Kunjan Patel <kunjanp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to merge this to unblock you.
If there are other files that are not auto-generated, please remove them in a followup PR (and add them to the ignored list).
input_dir = language_config.get_input_dir(bazel_bin, rule_dir) | ||
input_files = glob.glob(os.path.join(input_dir, language_config.generated_file_pattern)) | ||
output_dir = os.path.join(output, rule_dir) | ||
print(f"Moving {len(input_files)} generated files from {input_dir} to output_dir {output_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why it got resolved.
Changes in the following PR