Sitelet https://github.com/ElementsProject/lightning/pull/8999
Skip to content

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

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

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

Conversation

@ThomsenDrake

@ThomsenDrake ThomsenDrake commented Mar 28, 2026 •

Copy link
Copy Markdown

Summary\n\nFixes #7929 — Add pyln-grpc-proto to the PyPI publishing workflow so the package is automatically published on release.\n\nChangelog-None\n\n### Changes\n\n1. .github/workflows/pypi.yml — Added pyln-grpc-proto to the publish matrix (same pattern as pyln-client, pyln-proto, pyln-testing)\n\n2. Makefile — Added a dedicated update-pyln-grpc-version target that handles the versioning differences:\n - Directory layout: pyln/grpc/ instead of pyln/grpc-proto/\n - Version format: PyPI uses 25.09 (no v prefix), while the tag is v25.09\n\n3. contrib/pyln-grpc-proto/pyln/grpc/__init__.py — Synced stale __version__ from "0.1.1" to "25.09" to match pyproject.toml\n\n### Why a custom Makefile target?\n\nThe existing update-pyln-version-% pattern assumes:\n- Directory layout: contrib/pyln-<name>/pyln/<name>/__init__.py\n- Version passed verbatim from git describe\n\npyln-grpc-proto breaks both assumptions:\n- Uses contrib/pyln-grpc-proto/pyln/grpc/__init__.py\n- Needs the v prefix stripped for PyPI\n\nThe 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.

@madelinevibes madelinevibes added the BOUNTY! 🫰 A bounty is available for this PR label Mar 29, 2026
@ThomsenDrake
ThomsenDrake force-pushed the feat/pyln-grpc-proto-publish-ci branch from 9349bed to 6f54133 Compare March 30, 2026 19:32
@madelinevibes madelinevibes linked an issue May 4, 2026 that may be closed by this pull request
@madelinevibes madelinevibes added this to the v26.09 milestone May 13, 2026
@madelinevibes madelinevibes added the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label May 13, 2026
@madelinevibes
madelinevibes force-pushed the feat/pyln-grpc-proto-publish-ci branch from de3681e to c705f0f Compare June 15, 2026 05:18

@Andezion Andezion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Was touching the generic update-pyln-version-% sed lines intentional, or an accidental side-effect of testing/editing? Since it's a no-op on this project's supported platforms, it's not blocking

Comment thread Makefile
@echo "Updating contrib/pyln-$* to $(NEW_VERSION)"
@$(SED) -i.bak 's/^version = .*/version = "$(NEW_VERSION)"/' contrib/pyln-$*/pyproject.toml && rm contrib/pyln-$*/pyproject.toml.bak
@$(SED) -i.bak 's/^__version__ = .*/__version__ = "$(NEW_VERSION)"/' contrib/pyln-$*/pyln/$*/__init__.py && rm contrib/pyln-$*/pyln/$*/__init__.py.bak
@$(SED) -i.bak 's/^version = .*/version = "$(NEW_VERSION)"' contrib/pyln-$*/pyproject.toml && rm contrib/pyln-$*/pyproject.toml.bak

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The Makefile diff does touch the pre-existing shared update-pyln-version-% recipe (used by client/proto/testing, not just the new grpc target) and drops the trailing / delimiter from both sed expressions

…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.

Changelog-None
@Andezion
Andezion force-pushed the feat/pyln-grpc-proto-publish-ci branch from c705f0f to db27e76 Compare July 22, 2026 23:06
@madelinevibes

Copy link
Copy Markdown
Collaborator

hi @ThomsenDrake are you able to respond to @Andezion 's review comments??
We'd love to include this in the 26.09 release but if you're not able to work on it this week, we'll move it to 26.12.

@daywalker90 daywalker90 modified the milestones: v26.09, v26.12 Aug 17, 2026

This branch has not been deployed

No deployments
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 Status::Ready for Review The work has been completed and is now awaiting evaluation or approval.

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

4 participants