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
2 changes: 2 additions & 0 deletions plugins/connectrpc/python/v0.9.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
16 changes: 16 additions & 0 deletions plugins/connectrpc/python/v0.9.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1.22
FROM python:3.11.15-bookworm AS build
WORKDIR /app
RUN python -mvenv /app
RUN . ./bin/activate \
&& pip install --no-cache-dir protoc-gen-connect-python==0.9.0 \
&& pip uninstall --yes pip setuptools \
&& rm -f bin/activate.fish bin/activate.csh bin/Activate.ps1

FROM gcr.io/distroless/python3-debian12:latest@sha256:e19b29c8473bed88f8b6e31e49d1133d1bdb2bf9c0af7e82d0e7434f7c036a63 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 /app /app
USER nobody
ENTRYPOINT [ "/app/bin/protoc-gen-connect-python" ]
19 changes: 19 additions & 0 deletions plugins/connectrpc/python/v0.9.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
name: buf.build/connectrpc/python
plugin_version: v0.9.0
source_url: https://github.com/connectrpc/connect-python
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-python/blob/v0.9.0/LICENSE
deps:
- plugin: buf.build/protocolbuffers/python:v34.0
output_languages:
- python
registry:
python:
package_type: "runtime"
# https://github.com/connectrpc/connect-python/blob/v0.9.0/protoc-gen-connect-python/pyproject.toml#L11
requires_python: ">=3.10"
deps:
# https://pypi.org/project/connect-python/
- "connect-python >= 0.9.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the release notes, I think this is the last (minor) release that will use this name on PyPI (https://pypi.org/project/connect-python/), and the future ones will use connectrpc.

cc @anuraaga if I misunderstood.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup - it should be out now. Is there anything we need to change here? I thought https://github.com/bufbuild/plugins/blob/main/plugins/connectrpc/python/source.yaml might mention the pypi package but don't see it there - let me know if there's something else to update.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah, I think it just took a little bit for the pypi release to publish:
image

I'll update this.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:sPSeYSs5cOn8mT34fLpThgPoJ5s5E6YDnTg/9nGIhyk=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:EOstjjuW36oZDPfiW063oODluZszRkOzvwr3b3NvHbQ=
Loading