-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Add Aspects to Bazel py_proto_library and py_grpc_library Rules #27275
Conversation
1100109
to
9fed8a6
Compare
9fed8a6
to
2a4440c
Compare
2a4440c
to
9d12aec
Compare
9d12aec
to
4aab192
Compare
The _generate_pb2_src rule is modified to produce a valid PyInfo provider that can be depended on directly by py_.* rules. Keeping an intermediate macro in place increases complexity without adding any real value.
The _generate_pb2_grpc_src rule is modified to produce a valid PyInfo provider that can be depended on directly by py_.* rules. Keeping an intermediate macro in place increase complexity without adding any real value.
4aab192
to
ccff864
Compare
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.
Basically just nits. I'm excited to see this landing. Thanks for the hard work!
bazel/test/python_test_repo/import_from_proto_library_package.py
Outdated
Show resolved
Hide resolved
You'll want to run this script to format your code. |
e5d45d9
to
9677401
Compare
It's easy enough for a plugin author to build their own rule-set, and it adds extra unused (and untested) complexity to gRPC's rules.
622f888
to
9dea2d1
Compare
Were there any formatting issues? The script didn't make any changes. |
The previous run has some changes, but it looks like they might be obsolete now:
|
9dea2d1
to
f26f805
Compare
Going ahead and merging since the final pending test (Artifact Build MacOS) should be unaffected by this PR. |
…rary Rules (grpc#27275)" (grpc#27805)" This reverts commit 763e5b4.
py_proto_library
is reworked to propagate dependencies to consumers as described in gRFC L86.