2017-04-04 16:49:42 +00:00
|
|
|
proto: clean
|
2017-06-23 13:08:18 +00:00
|
|
|
python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. --python_grpc_out=. example/helloworld.proto
|
|
|
|
python3 -m grpc_tools.protoc -Itests --python_out=tests --python_grpc_out=tests tests/protobuf/testing.proto
|
2017-01-24 17:10:43 +00:00
|
|
|
|
|
|
|
server:
|
2017-06-27 15:19:10 +00:00
|
|
|
@PYTHONPATH=. python -m example.server
|
|
|
|
|
|
|
|
_server:
|
|
|
|
@PYTHONPATH=. python -m example._reference.server
|
2017-01-24 17:10:43 +00:00
|
|
|
|
|
|
|
client:
|
2017-06-27 15:19:10 +00:00
|
|
|
@PYTHONPATH=. python -m example.client
|
|
|
|
|
|
|
|
_client:
|
|
|
|
@PYTHONPATH=. python -m example._reference.client
|
2017-04-04 16:49:42 +00:00
|
|
|
|
|
|
|
clean:
|
2017-06-23 13:08:18 +00:00
|
|
|
rm -f ./example/*_pb2.py
|
|
|
|
rm -f ./example/*_grpc.py
|
|
|
|
rm -f ./tests/protobuf/*_pb2.py
|
|
|
|
rm -f ./tests/protobuf/*_grpc.py
|