forked from vmagamedov/grpclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (46 loc) · 1.6 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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)
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
release: proto
./scripts/release_check.sh
rm -rf grpclib.egg-info
python setup.py sdist
reqs:
pip-compile -U setup.py -o setup.txt
pip-compile -U requirements/runtime.in
pip-compile -U requirements/docs.in
pip-compile -U requirements/test.in
pip-compile -U requirements/check.in
pip-compile -U requirements/release.in
server:
@PYTHONPATH=examples python3 -m reflection.server
server_streaming:
@PYTHONPATH=examples python3 -m streaming.server
_server:
@PYTHONPATH=examples python3 -m _reference.server
client:
@PYTHONPATH=examples python3 -m helloworld.client
client_streaming:
@PYTHONPATH=examples python3 -m streaming.client
_client:
@PYTHONPATH=examples python3 -m _reference.client