jelmer / setuptools-protobuf

protobuf support for setuptools
Apache License 2.0
14 stars 5 forks source link

Support wildcards in protobufs #37

Open jmspereira opened 7 months ago

jmspereira commented 7 months ago

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,

jelmer commented 7 months ago

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 commented 7 months ago

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

jelmer commented 6 months ago

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