-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 1.32 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
.PHONY: build buildbuf dist clean install publish
buildbuf:
buf generate
touch m1l0_services/__init__.py
touch m1l0_services/imagebuilder/__init__.py
touch m1l0_services/imagebuilder/v1/__init__.py
touch m1l0_services/dataservice/__init__.py
touch m1l0_services/dataservice/v1/__init__.py
touch m1l0_pipeline/__init__.py
touch m1l0_pipeline/v1/__init__.py
build:
python -m grpc_tools.protoc -I grpc --python_out=. --grpc_python_out=. grpc/m1l0_services/imagebuilder/v1/*.proto
python -m grpc_tools.protoc -I grpc --python_out=. --grpc_python_out=. grpc/m1l0_services/dataservice/v1/*.proto
python -m grpc_tools.protoc -I grpc --python_out=. --grpc_python_out=. grpc/m1l0_pipeline/v1/*.proto
touch m1l0_services/__init__.py
touch m1l0_services/imagebuilder/__init__.py
touch m1l0_services/imagebuilder/v1/__init__.py
touch m1l0_services/dataservice/__init__.py
touch m1l0_services/dataservice/v1/__init__.py
touch m1l0_pipeline/__init__.py
touch m1l0_pipeline/v1/__init__.py
dist:
python setup.py bdist_wheel
clean:
rm -rf m1l0_services m1l0_pipeline __pycache__ build dist *.egg-info .eggs .coverage .pytest* htmlcov
install:
pip install --force-reinstall dist/m1l0_protobufs-*-py3-none-any.whl
remove:
pip uninstall -y m1l0-protobufs
# NOTE: tokens in ~/.pypirc
publish:
twine upload --repository m1l0-protobufs dist/*