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

Support wildcards in protobufs #37

Open
jmspereira opened this issue Mar 20, 2024 · 3 comments
Open

Support wildcards in protobufs #37

jmspereira opened this issue Mar 20, 2024 · 3 comments

Comments

@jmspereira
Copy link

Hey @jelmer,
Thanks for the awesome project!

Is it possible to change the source to specify the path for the protobuf files using wildcards? Or even better, if the protobufs configuration is not specified, it automatically searches for all .proto files inside the project?

Best regards,

  • Jorge Pereira
@jelmer
Copy link
Owner

jelmer commented Mar 20, 2024

Hi Jorge,

There is currently no support for specifying wildcards in pyproject.toml (though open to PRs to add that), but the setup.py interface just allows arguments to be passed in as python objects so you could call glob() there and pass the appropriate list of paths into Protobuf().

Hope that helps.

@jmspereira jmspereira changed the title Support wildcards in protofufs Support wildcards in protobufs Mar 20, 2024
@jmspereira
Copy link
Author

Thanks for the answer, I will try to have time to open a PR adding the support for wildcards in pyproject.toml.
Best

@jelmer
Copy link
Owner

jelmer commented May 8, 2024

@jmspereira thanks! Let me know if there's anything I can do to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants