Replace dependency on protoc with grpcio-tools

This change removes the dependency on platform provided protobuf tools
in favour of `grpcio-tools` dependency. This makes both development and
compiler use independent from platform dependencies.
This commit is contained in:
Arun Babu Neelicattu
2020-07-08 12:36:31 +02:00
committed by Bouke Versteegh
parent b2651335ce
commit 03211604bc
7 changed files with 179 additions and 95 deletions

View File

@@ -31,7 +31,7 @@ clean: ## - Clean out generated files from the workspace
o=output
plugin: ## - Execute the protoc plugin, with output write to `output` or the value passed to `-o`
mkdir -p $(o)
protoc --plugin=protoc-gen-custom=betterproto/plugin.py $(i) --custom_out=$(o)
poetry run python -m grpc.tools.protoc $(i) --python_betterproto_out=$(o)
# CI tasks