Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/bufbuild/py/v0.7.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!requirements.txt
18 changes: 18 additions & 0 deletions plugins/bufbuild/py/v0.7.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1.27
FROM python:3.13.16-trixie@sha256:98daa3227dee3c38b8ee9e020e3785ec4274b1affd854c9f40ead46b6fb31f55 AS build
WORKDIR /app
RUN python -mvenv /app
ADD /requirements.txt requirements.txt
RUN . ./bin/activate \
&& pip install --no-cache-dir -r requirements.txt \
&& pip uninstall --yes pip setuptools \
&& rm -f requirements.txt bin/activate.fish bin/activate.csh bin/Activate.ps1 \
&& ln -sf /usr/bin/python /app/bin/python

FROM gcr.io/distroless/python3-debian13:latest@sha256:96234eaf03bba491856ead9142eccdda8cf9d09ce418770a260b84f529d81848 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 /app /app
USER nobody
CMD [ "/app/bin/protoc-gen-py" ]
21 changes: 21 additions & 0 deletions plugins/bufbuild/py/v0.7.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: v1
name: buf.build/bufbuild/py
plugin_version: v0.7.0
source_url: https://github.com/bufbuild/protobuf-py
integration_guide_url: https://protobufpy.com/getting-started/quickstart/
description: Generates idiomatic Python code from Protocol Buffers definitions using protobuf-py.
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protobuf-py/blob/v0.7.0/LICENSE
output_languages:
- python
registry:
python:
package_type: "runtime"
requires_python: ">=3.11"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Bumped this from 3.10 to 3.11.

deps:
# https://pypi.org/project/protobuf-py/
- "protobuf-py>=0.7.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
2 changes: 2 additions & 0 deletions plugins/bufbuild/py/v0.7.0/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
protoc-gen-py==0.7.0
protobuf-py==0.7.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2FCmygAU/NvT8kHfA31C22qzpyFVAQJf5hsT2GGQt4o=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:/mPY7gYD3eSnEHiWmAP7O9Njj9ngUIrWEJIUveyRQd0=
Loading