Skip to content

Commit a598cfc

Browse files
Update bufbuild/py (#2645)
### bufbuild - py: v0.2.0 → v0.3.0 Co-authored-by: app-token-plugins[bot] <app-token-plugins[bot]@users.noreply.github.com>
1 parent c1c029c commit a598cfc

6 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!requirements.txt
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# syntax=docker/dockerfile:1.24
2+
FROM python:3.13.14-trixie@sha256:54e7879ce487f34f8ee85fc37e7547e843a2358bbcb19ecc273869e9d9fcc7dc AS build
3+
WORKDIR /app
4+
RUN python -mvenv /app
5+
ADD /requirements.txt requirements.txt
6+
RUN . ./bin/activate \
7+
&& pip install --no-cache-dir -r requirements.txt \
8+
&& pip uninstall --yes pip setuptools \
9+
&& rm -f requirements.txt bin/activate.fish bin/activate.csh bin/Activate.ps1 \
10+
&& ln -sf /usr/bin/python /app/bin/python
11+
12+
FROM gcr.io/distroless/python3-debian13:latest@sha256:325c8639176419afb9c3b50b420fbbd65d608f85f1e3f38bc4b8ba80aeac2e8d AS base
13+
14+
FROM scratch
15+
COPY --link --from=base / /
16+
COPY --link --from=build --chmod=0755 /app /app
17+
USER nobody
18+
CMD [ "/app/bin/protoc-gen-py" ]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: v1
2+
name: buf.build/bufbuild/py
3+
plugin_version: v0.3.0
4+
source_url: https://github.com/bufbuild/protobuf-py
5+
description: Generates idiomatic Python code from Protocol Buffers definitions using protobuf-py.
6+
spdx_license_id: Apache-2.0
7+
license_url: https://github.com/bufbuild/protobuf-py/blob/v0.3.0/LICENSE
8+
output_languages:
9+
- python
10+
registry:
11+
python:
12+
package_type: "runtime"
13+
requires_python: ">=3.10"
14+
deps:
15+
# https://pypi.org/project/protobuf-py/
16+
- "protobuf-py>=0.3.0"
17+
opts:
18+
# Produce PEP 420 namespace packages so the py, grpc-py, and dependency
19+
# SDKs for a module can share the same top-level package.
20+
- init_files=false
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
protoc-gen-py==0.3.0
2+
protobuf-py==0.3.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:85v2ycudxhAhklNngus+wxeJ7ik2w+vkxckBayx3Q3c=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:vBW2M7QspAmJz+mCPlGEkFgVLiwfly3ZWxhFr9Dsv5E=

0 commit comments

Comments
 (0)