mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
add note about protoc version and add Make command to generate protobuf files
This commit is contained in:
4
Makefile
4
Makefile
@ -2,3 +2,7 @@ lintroll:
|
||||
# NOTE: disabling `mypy` until we get typing sorted in this repo
|
||||
# mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
|
||||
black --check examples libp2p/__init__.py libp2p/host libp2p/kademlia libp2p/network libp2p/peer libp2p/protocol_muxer libp2p/pubsub/*.py libp2p/routing libp2p/security libp2p/stream_muxer libp2p/transport tests setup.py
|
||||
|
||||
protobufs:
|
||||
cd libp2p/pubsub/pb && protoc --python_out=. rpc.proto
|
||||
cd libp2p/pubsub/pb && python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. rpc.proto
|
||||
|
||||
Reference in New Issue
Block a user