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/connectrpc/py/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source:
pypi:
name: protoc-gen-connectrpc
3 changes: 3 additions & 0 deletions plugins/connectrpc/py/v0.11.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/connectrpc/py/v0.11.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1.24
FROM python:3.13.14-trixie@sha256:ea79a4f0ffab442ce847e667e1aded8e7183921711af5be2253d7d78e45df67f 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:178dd00f2da3271f3819df5cd327472754946c7430d82197b247e95e839a3d55 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 /app /app
USER nobody
ENTRYPOINT [ "/app/bin/protoc-gen-connectrpc" ]
19 changes: 19 additions & 0 deletions plugins/connectrpc/py/v0.11.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
name: buf.build/connectrpc/py
plugin_version: v0.11.0
source_url: https://github.com/connectrpc/connect-py
description: Generates client and server stubs for Connect Python. Compatible with the Connect RPC protocol.
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-py/blob/v0.11.0/LICENSE
deps:
- plugin: buf.build/bufbuild/py:v0.1.1
output_languages:
- python
registry:
python:
package_type: "runtime"
# https://github.com/connectrpc/connect-py/blob/v0.10.1/pyproject.toml#L6
requires_python: ">=3.10"
deps:
# https://pypi.org/project/connectrpc/
- "connectrpc >= 0.11.0"
2 changes: 2 additions & 0 deletions plugins/connectrpc/py/v0.11.0/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
protoc-gen-connectrpc==0.11.0
protobuf-py==0.1.1
1 change: 1 addition & 0 deletions plugins/connectrpc/python/v0.10.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ registry:
deps:
# https://pypi.org/project/connectrpc/
- "connectrpc >= 0.10.1"
deprecated: true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:SVYHkPigGibgNXwJYoesZZCVo2Ili61vHcMcoAVryXk=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:WgNj6L10ZNaeBJvmiNEOipF+9fm1AdXV0e1P3xpIs94=
Loading