Skip to content

Commit 5db7745

Browse files
rustyrussellmadelinevibes
authored andcommitted
Makefile: fix make update-versions.
1. We need to replace versions in __init__.py 2. We need to run uv after changing versions, so it updates uv.lock Signed-off-by: Rusty Russell <[email protected]>
1 parent 8ebd3da commit 5db7745

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,14 @@ clean: obsclean
758758
PYLNS=client proto testing
759759
update-versions: update-pyln-versions update-reckless-version update-dot-version update-doc-examples
760760
@uv lock
761+
761762
update-pyln-versions: $(PYLNS:%=update-pyln-version-%)
762763

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

768770
pyln-release: $(PYLNS:%=pyln-release-%)
769771

0 commit comments

Comments
 (0)