Skip to content

Add plugins for protobuf-py#2553

Closed
anuraaga wants to merge 2 commits into
bufbuild:mainfrom
anuraaga:protobuf-py
Closed

Add plugins for protobuf-py#2553
anuraaga wants to merge 2 commits into
bufbuild:mainfrom
anuraaga:protobuf-py

Conversation

@anuraaga

Copy link
Copy Markdown
Contributor

This adds protobuf-py's codegen plugins, protoc-gen-py and protoc-gen-grpc-py. The pattern is identical to nipunn1313-mypy except for bumping the base images to the latest.

/cc @thezachdrake

spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protobuf-py/blob/v0.1.0/LICENSE
output_languages:
- python

@oliversun9 oliversun9 Jun 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- python
- python
registry:
python:
package_type: "runtime"
requires_python: ">=3.10"
deps:
# https://pypi.org/project/protobuf-py/
- "protobuf-py>=0.1.0"
opts:
# Produce PEP 420 namespace packages so the py, grpc-py, and dependency
# SDKs for a module can share the same top-level package.
- init_files=false

I think we need - init_files=false?

name: buf.build/bufbuild/grpc-py
plugin_version: v0.1.0
source_url: https://github.com/bufbuild/protobuf-py
description: Generates gRPC-Python stubs that use protobuf-py.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Generates gRPC-Python stubs that use protobuf-py.
description: Generates gRPC-Python stubs that use protobuf-py.
deps:
- plugin: buf.build/bufbuild/py:v0.1.0

spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protobuf-py/blob/v0.1.0/LICENSE
output_languages:
- python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- python
- python
registry:
python:
package_type: "runtime"
requires_python: ">=3.10"
deps:
# https://pypi.org/project/grpcio/
- "grpcio>=1.68"

not sure if it should be 1.68 though

oliversun9 added a commit that referenced this pull request Jun 24, 2026
This contains changes from #2553
with `registry` field added to the `buf.pluin.yaml`s and `v0.1.0`
changed to `v0.1.1`.

---------

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
@anuraaga anuraaga closed this Jun 24, 2026
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

Successfully merging this pull request may close these issues.

2 participants