rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Support generation of pyi files with py_proto_library

Open bluec0re opened this issue 1 year ago • 2 comments

🚀 feature request

Relevant Rules

New feature for py_proto_library

Description

protoc v3.20 and above supports to generate .pyi files from protos. Whould be great if py_proto_library would/could generate those as well by using the --pyi_out argument to protoc.

Describe the solution you'd like

A new attribute for py_proto_library to enable/disable the generation of .pyi files and a way to reference them for packaging/editor support.

Describe alternatives you've considered

Switching to https://github.com/grpc/grpc (which has added support here: https://github.com/grpc/grpc/pull/32872), but we don't use grpc and would prefer to stick to primary bazel rules.

bluec0re avatar Jul 04 '23 09:07 bluec0re

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

github-actions[bot] avatar Dec 31 '23 22:12 github-actions[bot]

friendly ping

bluec0re avatar Dec 31 '23 23:12 bluec0re