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.5.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.5.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1.26
FROM python:3.13.15-trixie@sha256:4a0820d8b1b1a1e012a23ff9a1296a3e28b48896a4d27a328a91ee197ce619d9 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:e866e2f9fbaa19f63e579cf2f61b7f76cd8a74c43a62a0af95d48678d9878436 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 /app /app
USER nobody
CMD [ "/app/bin/protoc-gen-py" ]
20 changes: 20 additions & 0 deletions plugins/bufbuild/py/v0.5.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v1
name: buf.build/bufbuild/py
plugin_version: v0.5.0
source_url: https://github.com/bufbuild/protobuf-py
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.5.0/LICENSE
output_languages:
- python
registry:
python:
package_type: "runtime"
requires_python: ">=3.10"
deps:
# https://pypi.org/project/protobuf-py/
- "protobuf-py>=0.5.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.5.0/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
protoc-gen-py==0.5.0
protobuf-py==0.5.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2fXahedGmaX3MI6w5ek304cvR+V+/W5wyBJP0Spw778=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:kL12cei2wZ+2E2Z/RLvYqxmA0sXgjKD0vfiqHpGMZNE=
Loading