Skip to content

Commit

Permalink
make: Generate grpc bindings if we want to test with rust enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jan 18, 2022
1 parent 4ff54de commit 1c3bfc5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,17 @@ endif
ifneq ($(RUST),0)
include cln-rpc/Makefile
include cln-grpc/Makefile

GRPC_GEN = tests/node_pb2.py \
tests/node_pb2_grpc.py \
tests/primitives_pb2.py

ALL_TEST_GEN += $(GRPC_GEN)

$(GRPC_GEN): cln-grpc/proto/node.proto cln-grpc/proto/primitives.proto
python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/node.proto --python_out=tests/ --grpc_python_out=tests/
python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/primitives.proto --python_out=tests/ --grpc_python_out=tests/

endif

# We make pretty much everything depend on these.
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ websocket-client
./contrib/pyln-proto
./contrib/pyln-testing

grpcio==1.34.0
grpcio-tools==1.34.0

# Dependencies from pyln-spec
# None

Expand Down

0 comments on commit 1c3bfc5

Please sign in to comment.