File tree Expand file tree Collapse file tree
contrib/pyln-grpc-proto/pyln/grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 WORKDIR : contrib/pyln-testing
2929 - PACKAGE : pyln-proto
3030 WORKDIR : contrib/pyln-proto
31+ - PACKAGE : pyln-grpc-proto
32+ WORKDIR : contrib/pyln-grpc-proto
3133 steps :
3234 - name : Checkout repository
3335 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -848,13 +848,23 @@ PYLNS=client proto testing
848848update-versions : update-pyln-versions update-reckless-version update-dot-version # FIXME: update-doc-examples
849849 @uv lock
850850
851- update-pyln-versions : $(PYLNS:%=update-pyln-version-% )
851+ update-pyln-versions : $(PYLNS:%=update-pyln-version-% ) update-pyln-grpc-version
852852
853853update-pyln-version-% :
854854 @if [ -z " $( NEW_VERSION) " ]; then echo " Set NEW_VERSION!" >&2 ; exit 1; fi
855855 @echo " Updating contrib/pyln-$* to $( NEW_VERSION) "
856- @$(SED ) -i.bak ' s/^version = .*/version = "$(NEW_VERSION)"/' contrib/pyln-$* /pyproject.toml && rm contrib/pyln-$* /pyproject.toml.bak
857- @$(SED ) -i.bak ' s/^__version__ = .*/__version__ = "$(NEW_VERSION)"/' contrib/pyln-$* /pyln/$* /__init__.py && rm contrib/pyln-$* /pyln/$* /__init__.py.bak
856+ @$(SED ) -i.bak ' s/^version = .*/version = "$(NEW_VERSION)"' contrib/pyln-$* /pyproject.toml && rm contrib/pyln-$* /pyproject.toml.bak
857+ @$(SED ) -i.bak ' s/^__version__ = .*/__version__ = "$(NEW_VERSION)"' contrib/pyln-$* /pyln/$* /__init__.py && rm contrib/pyln-$* /pyln/$* /__init__.py.bak
858+
859+ # pyln-grpc-proto uses a different directory layout (pyln/grpc/ not
860+ # pyln/grpc-proto/) and publishes versions without the 'v' prefix on
861+ # PyPI, so it needs its own update target.
862+ update-pyln-grpc-version :
863+ @if [ -z " $( NEW_VERSION) " ]; then echo " Set NEW_VERSION!" >&2 ; exit 1; fi
864+ @GRPC_VERSION=$$(echo "$(NEW_VERSION ) " | $(SED ) 's/^v//' ) ; \
865+ echo " Updating contrib/pyln-grpc-proto to $$ GRPC_VERSION" ; \
866+ $(SED ) -i.bak ' s/^version = .*/version = "' $$ GRPC_VERSION' "/' contrib/pyln-grpc-proto/pyproject.toml && rm contrib/pyln-grpc-proto/pyproject.toml.bak; \
867+ $(SED ) -i.bak ' s/^__version__ = .*/__version__ = "' $$ GRPC_VERSION' "/' contrib/pyln-grpc-proto/pyln/grpc/__init__.py && rm contrib/pyln-grpc-proto/pyln/grpc/__init__.py.bak
858868
859869pyln-release : $(PYLNS:%=pyln-release-% )
860870
Original file line number Diff line number Diff line change 11from pyln .grpc .primitives_pb2 import * # noqa: F401,F403
22from pyln .grpc .node_pb2 import * # noqa: F401,F403
33from pyln .grpc .node_pb2_grpc import * # noqa: F401,F403
4- __version__ = "0.1.1 "
4+ __version__ = "25.09 "
You can’t perform that action at this time.
0 commit comments