Skip to content

ci: publish pyln-grpc-proto to PyPI again - #9614

Open
india3Eth wants to merge 2 commits into
ElementsProject:masterfrom
india3Eth:ci/publish-pyln-grpc-proto
Open

india3Eth wants to merge 2 commits into
ElementsProject:masterfrom
india3Eth:ci/publish-pyln-grpc-proto

Conversation

@india3Eth

Copy link
Copy Markdown

Fixes #7929.

Adds pyln-grpc-proto back to the PyPI build and publish matrices. Its module lives in pyln/grpc, so it gets its own update-pyln-version-grpc-proto target.

While testing I found the "Update pyln versions" step in pypi-build.yml has never actually done anything. The job doesn't run ./configure, so $(SED) is empty and make reads the leading -i.bak as its ignore-errors prefix. The step passes but leaves the committed versions untouched. The first commit falls back to plain sed.

Tested on a clean checkout without configure:

  • make update-pyln-versions NEW_VERSION=v26.09.1 now bumps all four packages. Before, it printed i.bak: command not found ... (ignored) and changed nothing.
  • uv build --package pyln-grpc-proto builds pyln_grpc_proto-26.9.1, with the generated protos included.

For the release side: PYPI_API_TOKEN needs upload rights on pyln-grpc-proto. The last release there is 24.2.1.

#8999 was for the same issue but hasn't answered the August ping, and it still targets the old pypi.yml.

Changelog-None

Checklist

  • The changelog has been updated in the relevant commit(s) according to the guidelines.
  • Tests have been added or modified to reflect the changes.
  • Documentation has been reviewed and updated as needed.
  • Related issues have been listed and linked, including any that this PR closes.
  • Important All PRs must consider how to reverse any persistent changes for tools/lightning-downgrade

The PyPI build job calls `make update-pyln-versions` on a fresh
checkout, so config.vars is missing and $(SED) is empty.  The recipe
lines then start with `-i.bak`, which make reads as the ignore-errors
prefix: every version bump fails with "i.bak: command not found" and
the job carries on with whatever versions are committed.

Fall back to plain sed when configure hasn't set one.
pyln-grpc-proto was dropped from the PyPI jobs because its module lives
in pyln/grpc rather than pyln/grpc-proto, which the generic
update-pyln-version-% rule assumes.  Give it its own version target and
add it back to the build and publish matrices.

Closes ElementsProject#7929

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

None yet

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

1 participant