Skip to content

Commit 3174b7d

Browse files
Update connectrpc/python to v0.5.0 (#2034)
1 parent 3318032 commit 3174b7d

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# syntax=docker/dockerfile:1.18
2+
FROM python:3.11.13-bookworm AS build
3+
WORKDIR /app
4+
RUN python -mvenv /app
5+
RUN . ./bin/activate \
6+
&& pip install --no-cache-dir protoc-gen-connect-python==0.5.0 \
7+
&& pip uninstall --yes pip setuptools \
8+
&& rm -f bin/activate.fish bin/activate.csh bin/Activate.ps1
9+
10+
FROM gcr.io/distroless/python3-debian12:latest@sha256:a0ded8676ed10e194cce1b8fdf9171672cda95ad1cabba4ece7b01f4db2e7471 AS base
11+
12+
FROM scratch
13+
COPY --link --from=base / /
14+
COPY --link --from=build --chmod=0755 /app /app
15+
USER nobody
16+
ENTRYPOINT [ "/app/bin/protoc-gen-connect-python" ]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: v1
2+
name: buf.build/connectrpc/python
3+
plugin_version: v0.5.0
4+
source_url: https://github.com/connectrpc/connect-python
5+
description: Generates client and server stubs for Connect Python. Compatible with the Connect RPC protocol.
6+
spdx_license_id: Apache-2.0
7+
license_url: https://github.com/connectrpc/connect-python/blob/v0.5.0/LICENSE
8+
deps:
9+
- plugin: buf.build/protocolbuffers/python:v32.1
10+
output_languages:
11+
- python
12+
registry:
13+
python:
14+
package_type: "runtime"
15+
# https://github.com/connectrpc/connect-python/blob/v0.5.0/protoc-gen-connect-python/pyproject.toml#L11
16+
requires_python: ">=3.10"
17+
deps:
18+
# https://pypi.org/project/connect-python/
19+
- "connect-python >= 0.5.0"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:xBXmWskwB1q3MooUhS11g0hafqE1s/muiht/9qkQwbc=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:V+Ep7qfrjlGQf5vwrbmpzJC1tmB4gX+GZJmBxwV9Sco=

0 commit comments

Comments
 (0)