2017-11-30 11:44:30 +00:00
|
|
|
__default__:
|
|
|
|
@echo "Please specify a target to make"
|
|
|
|
|
|
|
|
clean:
|
2018-08-27 17:12:24 +00:00
|
|
|
rm -f ./grpclib/health/v1/*_pb2.py
|
|
|
|
rm -f ./grpclib/health/v1/*_grpc.py
|
2018-08-20 14:07:33 +00:00
|
|
|
rm -f ./grpclib/reflection/v1/*_pb2.py
|
|
|
|
rm -f ./grpclib/reflection/v1/*_grpc.py
|
2018-08-09 18:27:35 +00:00
|
|
|
rm -f ./grpclib/reflection/v1alpha/*_pb2.py
|
|
|
|
rm -f ./grpclib/reflection/v1alpha/*_grpc.py
|
2017-11-30 11:44:30 +00:00
|
|
|
rm -f ./example/helloworld/*_pb2.py
|
|
|
|
rm -f ./example/helloworld/*_grpc.py
|
2018-08-20 14:07:33 +00:00
|
|
|
rm -f ./example/streaming/*_pb2.py
|
|
|
|
rm -f ./example/streaming/*_grpc.py
|
2017-11-30 11:44:30 +00:00
|
|
|
rm -f ./tests/*_pb2.py
|
|
|
|
rm -f ./tests/*_grpc.py
|
|
|
|
|
2017-04-04 16:49:42 +00:00
|
|
|
proto: clean
|
2018-08-27 17:12:24 +00:00
|
|
|
python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. grpclib/health/v1/health.proto
|
2018-08-14 16:45:31 +00:00
|
|
|
python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. grpclib/reflection/v1/reflection.proto
|
2018-08-20 14:07:33 +00:00
|
|
|
python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. grpclib/reflection/v1alpha/reflection.proto
|
|
|
|
python3 -m grpc_tools.protoc -Iexample --python_out=example --python_grpc_out=example --grpc_python_out=example example/helloworld/helloworld.proto
|
|
|
|
python3 -m grpc_tools.protoc -Iexample --python_out=example --python_grpc_out=example example/streaming/helloworld.proto
|
2018-05-23 14:27:47 +00:00
|
|
|
cd tests; python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. dummy.proto
|
2017-01-24 17:10:43 +00:00
|
|
|
|
2018-08-09 18:27:35 +00:00
|
|
|
release: proto
|
|
|
|
./scripts/release_check.sh
|
|
|
|
rm -rf grpclib.egg-info
|
|
|
|
python setup.py sdist
|
|
|
|
|
2017-01-24 17:10:43 +00:00
|
|
|
server:
|
2018-08-15 09:45:55 +00:00
|
|
|
@PYTHONPATH=example python3 -m reflection.server
|
2017-06-27 15:19:10 +00:00
|
|
|
|
2018-08-20 14:07:33 +00:00
|
|
|
server_streaming:
|
|
|
|
@PYTHONPATH=example python3 -m streaming.server
|
|
|
|
|
2017-06-27 15:19:10 +00:00
|
|
|
_server:
|
2018-08-20 14:07:33 +00:00
|
|
|
@PYTHONPATH=example python3 -m _reference.server
|
2017-01-24 17:10:43 +00:00
|
|
|
|
|
|
|
client:
|
2017-11-30 11:44:30 +00:00
|
|
|
@PYTHONPATH=example python3 -m helloworld.client
|
2017-06-27 15:19:10 +00:00
|
|
|
|
2018-08-20 14:07:33 +00:00
|
|
|
client_streaming:
|
|
|
|
@PYTHONPATH=example python3 -m streaming.client
|
|
|
|
|
2017-06-27 15:19:10 +00:00
|
|
|
_client:
|
2018-08-20 14:07:33 +00:00
|
|
|
@PYTHONPATH=example python3 -m _reference.client
|
|
|
|
|
|
|
|
_bench:
|
|
|
|
@PYTHONPATH=example python3 -m _reference.bench
|