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 <rusty@rustcorp.com.au>
This commit is contained in:
committed by
madelinevibes
parent
8ebd3da7b5
commit
5db7745fd9
2
Makefile
2
Makefile
@@ -758,12 +758,14 @@ clean: obsclean
|
||||
PYLNS=client proto testing
|
||||
update-versions: update-pyln-versions update-reckless-version update-dot-version update-doc-examples
|
||||
@uv lock
|
||||
|
||||
update-pyln-versions: $(PYLNS:%=update-pyln-version-%)
|
||||
|
||||
update-pyln-version-%:
|
||||
@if [ -z "$(NEW_VERSION)" ]; then echo "Set NEW_VERSION!" >&2; exit 1; fi
|
||||
@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
|
||||
|
||||
pyln-release: $(PYLNS:%=pyln-release-%)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user