grpclib/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2019-06-11 18:29:30 +00:00
include examples/mtls/keys/Makefile
__default__:
@echo "Please specify a target to make"
GEN=python3 -m grpc_tools.protoc -I. --python_out=. --python_grpc_out=. --mypy_out=.
GENERATED=*{_pb2.py,_grpc.py,.pyi}
clean:
rm -f grpclib/health/v1/$(GENERATED)
rm -f grpclib/reflection/v1/$(GENERATED)
rm -f grpclib/reflection/v1alpha/$(GENERATED)
rm -f examples/helloworld/$(GENERATED)
rm -f examples/streaming/$(GENERATED)
rm -f examples/multiproc/$(GENERATED)
rm -f tests/$(GENERATED)
proto: clean
$(GEN) grpclib/health/v1/health.proto
$(GEN) grpclib/reflection/v1/reflection.proto
$(GEN) grpclib/reflection/v1alpha/reflection.proto
cd examples && $(GEN) --grpc_python_out=. helloworld/helloworld.proto
cd examples && $(GEN) streaming/helloworld.proto
cd examples && $(GEN) multiproc/primes.proto
cd tests && $(GEN) dummy.proto
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
pip-compile -U requirements/optional.in
pip-compile -U requirements/docs.in
pip-compile -U requirements/test.in
pip-compile -U requirements/lint.in
pip-compile -U requirements/check.in
server:
@PYTHONPATH=examples python3 -m reflection.server
2018-08-20 14:07:33 +00:00
server_streaming:
@PYTHONPATH=examples python3 -m streaming.server
2018-08-20 14:07:33 +00:00
_server:
@PYTHONPATH=examples python3 -m _reference.server
client:
@PYTHONPATH=examples python3 -m helloworld.client
2018-08-20 14:07:33 +00:00
client_streaming:
@PYTHONPATH=examples python3 -m streaming.client
2018-08-20 14:07:33 +00:00
_client:
@PYTHONPATH=examples python3 -m _reference.client