grpclib/Makefile

65 lines
1.7 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=. --grpclib_python_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)
2019-10-18 07:52:02 +00:00
rm -f grpclib/channelz/v1/$(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
$(GEN) grpclib/channelz/v1/channelz.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
2024-04-17 11:16:41 +00:00
python setup.py sdist bdist_wheel
2018-08-09 18:27:35 +00:00
2019-11-26 10:31:12 +00:00
reqs:
pip-compile -U setup.py -o setup.txt
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/check.in
2020-03-20 12:11:28 +00:00
pip-compile -U requirements/release.in
2019-11-26 10:31:12 +00:00
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
2023-09-23 19:49:28 +00:00
server_mtls:
@PYTHONPATH=examples python3 -m mtls.server
_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
2023-09-23 19:49:28 +00:00
client_mtls:
@PYTHONPATH=examples python3 -m mtls.client
_client:
@PYTHONPATH=examples python3 -m _reference.client