lightning icon indicating copy to clipboard operation
lightning copied to clipboard

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

Open ThomsenDrake opened this issue 8 months ago • 0 comments

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.

ThomsenDrake avatar Mar 28 '26 13:03 ThomsenDrake