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

[Bazel] Move Python rules to //python #9952

Merged
merged 7 commits into from May 13, 2022

Conversation

dlj-NaN
Copy link
Contributor

@dlj-NaN dlj-NaN commented May 12, 2022

  • This PR moves Python rules to //python, but leaves aliases for publicly-visible targets.
  • There is some internal cleanup for how we copy .proto sources so they are usable from Python.
  • python/BUILD.bazel is now more in line with Bazel's BUILD style guide.

DefaultInfo(files = depset([dest for src, dest in src_dests])),
]

internal_copy_files_impl = rule(
Copy link
Member

Choose a reason for hiding this comment

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

Could you add some more comments for the semantics of this rule and the attributes?

It's not immediately clear to me what this rule does at a high level, or why it needs to make a batch file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@dlj-NaN dlj-NaN closed this May 13, 2022
@dlj-NaN dlj-NaN deleted the python-bazel branch May 13, 2022 00:59
@dlj-NaN dlj-NaN restored the python-bazel branch May 13, 2022 01:00
@dlj-NaN dlj-NaN reopened this May 13, 2022
@dlj-NaN dlj-NaN marked this pull request as ready for review May 13, 2022 02:01
@dlj-NaN dlj-NaN merged commit b3cbea1 into protocolbuffers:main May 13, 2022
@dlj-NaN dlj-NaN deleted the python-bazel branch May 13, 2022 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants