From a848b64dd568d1ba83d05c161853b6d65198e87b Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Tue, 8 Sep 2026 09:53:19 -0500 Subject: [PATCH] Update connectrpc-py to latest Fixes #2722. --- plugins/connectrpc/py/v0.12.1/.dockerignore | 3 +++ plugins/connectrpc/py/v0.12.1/Dockerfile | 18 +++++++++++++++++ plugins/connectrpc/py/v0.12.1/buf.plugin.yaml | 20 +++++++++++++++++++ .../connectrpc/py/v0.12.1/requirements.txt | 2 ++ .../connectrpc/py/v0.12.1/eliza/plugin.sum | 1 + .../connectrpc/py/v0.12.1/petapis/plugin.sum | 1 + 6 files changed, 45 insertions(+) create mode 100644 plugins/connectrpc/py/v0.12.1/.dockerignore create mode 100644 plugins/connectrpc/py/v0.12.1/Dockerfile create mode 100644 plugins/connectrpc/py/v0.12.1/buf.plugin.yaml create mode 100644 plugins/connectrpc/py/v0.12.1/requirements.txt create mode 100644 tests/testdata/buf.build/connectrpc/py/v0.12.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/connectrpc/py/v0.12.1/petapis/plugin.sum diff --git a/plugins/connectrpc/py/v0.12.1/.dockerignore b/plugins/connectrpc/py/v0.12.1/.dockerignore new file mode 100644 index 000000000..c8a679bc6 --- /dev/null +++ b/plugins/connectrpc/py/v0.12.1/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!requirements.txt diff --git a/plugins/connectrpc/py/v0.12.1/Dockerfile b/plugins/connectrpc/py/v0.12.1/Dockerfile new file mode 100644 index 000000000..fee9d7f72 --- /dev/null +++ b/plugins/connectrpc/py/v0.12.1/Dockerfile @@ -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: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" ] diff --git a/plugins/connectrpc/py/v0.12.1/buf.plugin.yaml b/plugins/connectrpc/py/v0.12.1/buf.plugin.yaml new file mode 100644 index 000000000..e4f134eaa --- /dev/null +++ b/plugins/connectrpc/py/v0.12.1/buf.plugin.yaml @@ -0,0 +1,20 @@ +version: v1 +name: buf.build/connectrpc/py +plugin_version: v0.12.1 +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.12.1/LICENSE +deps: + # https://github.com/connectrpc/connect-py/blob/v0.12.1/pyproject.toml#L32 + - plugin: buf.build/bufbuild/py:v0.4.0 +output_languages: + - python +registry: + python: + package_type: "runtime" + # https://github.com/connectrpc/connect-py/blob/v0.12.1/pyproject.toml#L6 + requires_python: ">=3.10" + deps: + # https://pypi.org/project/connectrpc/ + - "connectrpc >= 0.12.1" diff --git a/plugins/connectrpc/py/v0.12.1/requirements.txt b/plugins/connectrpc/py/v0.12.1/requirements.txt new file mode 100644 index 000000000..994389d94 --- /dev/null +++ b/plugins/connectrpc/py/v0.12.1/requirements.txt @@ -0,0 +1,2 @@ +protoc-gen-connectrpc==0.12.1 +protobuf-py==0.4.0 diff --git a/tests/testdata/buf.build/connectrpc/py/v0.12.1/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/py/v0.12.1/eliza/plugin.sum new file mode 100644 index 000000000..9ae22917d --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/py/v0.12.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:SdGfXREAiYzsOy8S1Lro7wLGS8vg8tKetnTrss9Ome0= diff --git a/tests/testdata/buf.build/connectrpc/py/v0.12.1/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/py/v0.12.1/petapis/plugin.sum new file mode 100644 index 000000000..97f4b0ed2 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/py/v0.12.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:ocB9A+l4yrJZNUUWh8DCYcRt6wbEZIlkVhrnMB7Dfo4=