File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 tar xvzf nanopb-0.4.6-linux-x86.tar.gz
2323 mv nanopb-0.4.6-linux-x86 nanopb-0.4.6
2424
25+ - name : Install poetry (needed by regen-protobufs.sh)
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip3 install poetry
29+
2530 - name : Re-generate protocol buffers
2631 run : |
2732 ./bin/regen-protobufs.sh
Original file line number Diff line number Diff line change 44# gsed -i 's/import "\//import ".\//g' ./protobufs/meshtastic/*
55# gsed -i 's/package meshtastic;//g' ./protobufs/meshtastic/*
66
7+ # protoc looks for mypy plugin in the python path
8+ source $( poetry env info --path) /bin/activate
9+
710./nanopb-0.4.6/generator-bin/protoc -I=protobufs --python_out ./ --mypy_out ./ ./protobufs/meshtastic/* .proto
811./nanopb-0.4.6/generator-bin/protoc -I=protobufs --python_out ./meshtastic/ --mypy_out ./meshtastic/ ./protobufs/nanopb.proto
912
You can’t perform that action at this time.
0 commit comments