2019-06-11 18:29:30 +00:00
|
|
|
include examples/mtls/keys/Makefile
|
|
|
|
|
2017-11-30 11:44:30 +00:00
|
|
|
__default__:
|
|
|
|
@echo "Please specify a target to make"
|
|
|
|
|
2019-09-18 08:58:13 +00:00
|
|
|
GEN=python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. --mypy_out=.
|
2020-05-30 15:38:48 +00:00
|
|
|
GEN2=python3 -m grpc_tools.protoc -I. --python_out=. --python_grpclib_out=. --mypy_out=.
|
|
|
|
GENERATED=*{_pb2.py,_grpc.py,_grpclib.py,.pyi}
|
2019-09-18 08:58:13 +00:00
|
|
|
|
2017-11-30 11:44:30 +00:00
|
|
|
clean:
|
2019-09-18 08:58:13 +00:00
|
|
|
rm -f grpclib/health/v1/$(GENERATED)
|
|
|
|
rm -f grpclib/reflection/v1/$(GENERATED)
|
|
|
|
rm -f grpclib/reflection/v1alpha/$(GENERATED)
|
2019-10-18 07:52:02 +00:00
|
|
|
rm -f grpclib/channelz/v1/$(GENERATED)
|
2019-09-18 08:58:13 +00:00
|
|
|
rm -f examples/helloworld/$(GENERATED)
|
|
|
|
rm -f examples/streaming/$(GENERATED)
|
|
|
|
rm -f examples/multiproc/$(GENERATED)
|
|
|
|
rm -f tests/$(GENERATED)
|
2017-11-30 11:44:30 +00:00
|
|
|
|
2017-04-04 16:49:42 +00:00
|
|
|
proto: clean
|
2020-05-30 15:38:48 +00:00
|
|
|
$(GEN2) grpclib/health/v1/health.proto
|
|
|
|
$(GEN2) grpclib/reflection/v1/reflection.proto
|
|
|
|
$(GEN2) grpclib/reflection/v1alpha/reflection.proto
|
|
|
|
$(GEN2) grpclib/channelz/v1/channelz.proto
|
2019-09-18 08:58:13 +00:00
|
|
|
cd examples && $(GEN) --grpc_python_out=. helloworld/helloworld.proto
|
|
|
|
cd examples && $(GEN) streaming/helloworld.proto
|
|
|
|
cd examples && $(GEN) multiproc/primes.proto
|
2020-05-30 15:38:48 +00:00
|
|
|
cd tests && $(GEN2) 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
|
|
|
|
|
2019-11-26 10:31:12 +00:00
|
|
|
reqs:
|
|
|
|
pip-compile -U setup.py -o setup.txt
|
2019-11-26 11:01:25 +00:00
|
|
|
pip-compile -U requirements/runtime.in
|
2019-11-26 10:31:12 +00:00
|
|
|
pip-compile -U requirements/docs.in
|
|
|
|
pip-compile -U requirements/test.in
|
|
|
|
pip-compile -U requirements/lint.in
|
|
|
|
pip-compile -U requirements/check.in
|
2020-03-20 12:11:28 +00:00
|
|
|
pip-compile -U requirements/release.in
|
2019-11-26 10:31:12 +00:00
|
|
|
|
2017-01-24 17:10:43 +00:00
|
|
|
server:
|
2019-04-28 17:31:18 +00:00
|
|
|
@PYTHONPATH=examples python3 -m reflection.server
|
2017-06-27 15:19:10 +00:00
|
|
|
|
2018-08-20 14:07:33 +00:00
|
|
|
server_streaming:
|
2019-04-28 17:31:18 +00:00
|
|
|
@PYTHONPATH=examples python3 -m streaming.server
|
2018-08-20 14:07:33 +00:00
|
|
|
|
2017-06-27 15:19:10 +00:00
|
|
|
_server:
|
2019-04-28 17:31:18 +00:00
|
|
|
@PYTHONPATH=examples python3 -m _reference.server
|
2017-01-24 17:10:43 +00:00
|
|
|
|
|
|
|
client:
|
2019-04-28 17:31:18 +00:00
|
|
|
@PYTHONPATH=examples python3 -m helloworld.client
|
2017-06-27 15:19:10 +00:00
|
|
|
|
2018-08-20 14:07:33 +00:00
|
|
|
client_streaming:
|
2019-04-28 17:31:18 +00:00
|
|
|
@PYTHONPATH=examples python3 -m streaming.client
|
2018-08-20 14:07:33 +00:00
|
|
|
|
2017-06-27 15:19:10 +00:00
|
|
|
_client:
|
2019-04-28 17:31:18 +00:00
|
|
|
@PYTHONPATH=examples python3 -m _reference.client
|