Skip to content

py: add pyln-grpc-proto to PyPI publishing CI#8999

Open
ThomsenDrake wants to merge 1 commit intoElementsProject:masterfrom
ThomsenDrake:feat/pyln-grpc-proto-publish-ci
Open

py: add pyln-grpc-proto to PyPI publishing CI#8999
ThomsenDrake wants to merge 1 commit intoElementsProject:masterfrom
ThomsenDrake:feat/pyln-grpc-proto-publish-ci

Conversation

@ThomsenDrake
Copy link
Copy Markdown

Summary

Fixes #7929 — Add pyln-grpc-proto to the PyPI publishing workflow so the package is automatically published on release.

Changes

  1. .github/workflows/pypi.yml — Added pyln-grpc-proto to the publish matrix (same pattern as pyln-client, pyln-proto, pyln-testing)

  2. Makefile — Added a dedicated update-pyln-grpc-version target that handles the versioning differences:

    • Directory layout: pyln/grpc/ instead of pyln/grpc-proto/
    • Version format: PyPI uses 25.09 (no v prefix), while the tag is v25.09
  3. contrib/pyln-grpc-proto/pyln/grpc/__init__.py — Synced stale __version__ from "0.1.1" to "25.09" to match pyproject.toml

Why a custom Makefile target?

The existing update-pyln-version-% pattern assumes:

  • Directory layout: contrib/pyln-<name>/pyln/<name>/__init__.py
  • Version passed verbatim from git describe

pyln-grpc-proto breaks both assumptions:

  • Uses contrib/pyln-grpc-proto/pyln/grpc/__init__.py
  • Needs the v prefix stripped for PyPI

The custom target is the minimal approach — it follows the exact same `` pattern as the generic targets and integrates into update-pyln-versions as a dependency.

…7929)

Add pyln-grpc-proto to the pypi.yml publish matrix and create a
dedicated update-pyln-grpc-version Makefile target that handles the
package's non-standard directory layout (pyln/grpc/ instead of
pyln/grpc-proto/) and strips the v-prefix from version tags.

Also syncs the stale __version__ in pyln/grpc/__init__.py to match
pyproject.toml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BOUNTY! 🫰 A bounty is available for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

py: Add CI job to publish pyln-grpc-proto package to PyPI

2 participants