mypy-protobuf icon indicating copy to clipboard operation
mypy-protobuf copied to clipboard

Add plugin to Buf Registry

Open MHDante opened this issue 3 years ago • 2 comments

Hi! Recently, Buf (org dealing with standardizing protobuf practices) has created a facility for compiling proto files without requiring installation of the individual plugins: https://buf.build/blog/remote-plugin-execution

Adding mypy-protobuf to the repo would allow using it without requiring installation.

In fact, a couple of people have already created the Dockerfile here: https://github.com/jeffsawatzky/mypy-protobuf-bufbuild https://github.com/adriansahlman/mypy-protobuf-bufbuild They have also published a BSR repo under their name.

That said, it would be best if the BSR repository was kept up to date as part of the CI of this repo. If possible, would you be ok with creating a BSR repo with the nipunn1313 username? The instructions to do so are here: https://docs.buf.build/bsr/remote-generation/plugin-example

If not, no worries, since the other's solutions will suffice for now.

MHDante avatar Mar 14 '22 09:03 MHDante

I'm not sufficiently familiar with the buf ecosystem to feel comfortable maintaining this.

However, I'd be happy to include links to other solutions in the README (PRs welcome)

If there's someone else willing to take up the initial work and the maintenance here, I'd also accept PRs that add such dockerfiles along with appropriate CI (potentially a new github action) to make sure it's up to date.

nipunn1313 avatar Mar 16 '22 17:03 nipunn1313

Hey there, this PR can likely be closed. In https://github.com/bufbuild/plugins/pull/470 we added these two plugins to our automated pipeline, which means they get built, tested and deployed with other plugins to https://buf.build/plugins

These plugins were highly requested, awesome job 🎉

https://buf.build/community/nipunn1313-mypy https://buf.build/community/nipunn1313-mypy-grpc

There's some documentation on how to use Remote Plugins on the docs site.

For @nipunn1313, there is nothing more you need to do. If you continue to publish valid semver versions then plugins will be automatically picked up and pushed to the BSR.

mfridman avatar Apr 04 '23 17:04 mfridman