Skip to content

Commit 1e8651e

Browse files
script: Add update-versions and update-poetry-lock in Makefile again
And fix sed command for Ubuntu. Fixes #8459. Changelog-None.
1 parent 39155d3 commit 1e8651e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,12 +756,13 @@ clean: obsclean
756756

757757
# See doc/contribute-to-core-lightning/contributor-workflow.md
758758
PYLNS=client proto testing
759+
update-versions: update-pyln-versions update-poetry-lock update-dot-version update-doc-examples
759760
update-pyln-versions: $(PYLNS:%=update-pyln-version-%)
760761

761762
update-pyln-version-%:
762763
@if [ -z "$(NEW_VERSION)" ]; then echo "Set NEW_VERSION!" >&2; exit 1; fi
763764
@echo "Updating contrib/pyln-$* to $(NEW_VERSION)"
764-
@sed -i '' 's/^version = .*/version = "$(NEW_VERSION)"/' contrib/pyln-$*/pyproject.toml
765+
@sed -i.bak 's/^version = .*/version = "$(NEW_VERSION)"/' contrib/pyln-$*/pyproject.toml && rm contrib/pyln-$*/pyproject.toml.bak
765766

766767
pyln-release: $(PYLNS:%=pyln-release-%)
767768

@@ -790,6 +791,9 @@ pyln-build-all: pyln-build pyln-build-bolts pyln-build-grpc-proto pyln-build-wss
790791
update-lock:
791792
uv sync --all-extras --all-groups
792793

794+
update-poetry-lock:
795+
poetry update update-reckless-version
796+
793797
update-reckless-version:
794798
@if [ -z "$(NEW_VERSION)" ]; then echo "Set NEW_VERSION!" >&2; exit 1; fi
795799
@sed -i '' "s/__VERSION__ = '\([.-z]*\)'/__VERSION__ = '$(NEW_VERSION)'/" tools/reckless

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,10 @@ pyln-bolt1 = { workspace = true }
6262
pyln-bolt2 = { workspace = true }
6363
pyln-bolt4 = { workspace = true }
6464
pyln-bolt7 = { workspace = true }
65+
66+
[tool.poetry]
67+
packages = [
68+
{ include = "contrib/pyln-client" },
69+
{ include = "contrib/pyln-proto" },
70+
{ include = "contrib/pyln-grpc-proto" }
71+
]

0 commit comments

Comments
 (0)