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
grpcio_tools: implement setuptools entrypoint for generating file #28662
Comments
Hi @plannigan. This sounds like a good helper feature. To make sure I understand, what you are proposing is a Makefile-like mechanism for CC @gnossen WDYT? |
Sounds totally reasonable to me. I'd be more than happy to review/accept a change like this. Thanks for the offer @plannigan ! |
Something like that. The project I where I use Also, my project also uses |
@plannigan If you have a clear idea of what this feature will look like, can you put together a short proposal for what you want to do to https://github.com/grpc/proposal ? One example proposal can be https://github.com/grpc/proposal/blob/master/L95-python-reflection-client.md. If possible, I think gRPC should support different ProtoBuf implementations. gRPC Java does. |
Proposal: grpc/proposal#290 |
Currently
grpc_tools
provides a command for integrating withsetuptools
. However, this requires custom integration on the part of the package (example: grpc_health_checking) and explicitly calling the command when building the wheel.Is your feature request related to a problem? Please describe.
With the introduction of PEP 517 and PEP 518, directly calling
setup.py
will start becoming less common. Additionally this type of integration will not work with projects that use this mechanism and solely use setup.cfgDescribe the solution you'd like
Custom commands are not the only integration point that is available.
setuptools.
also supports entrypoints that allows for packages to act as plugins and provide custom behavior. This is documented with examples generating files based on revision control information. However, this could also be used to generate source files based on.proto
files.Describe alternatives you've considered
A project I currently work on needs to call a custom script to generate the files before building the package with build.
Additional context
I'd be interested in working on the implementation of this functionality if it is something that would be accepted.
The text was updated successfully, but these errors were encountered: