-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
42 lines (30 loc) · 857 Bytes
/
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
.PHONY: all install test tests clean install-hooks
all: test
build:
./setup.py bdist_egg
dev: clean
./setup.py develop
install:
pip install .
install-hooks:
tox -e pre-commit
test:
tox
tests: test
clean:
@rm -rf .tox build dist *.egg-info
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
venv: setup.py requirements-dev.txt
tox -e venv
.PHONY: build-protobuf
build-protobuf: venv
# python_out and mypy_out are both relative to the dir the protobuf definition is in
protoc --plugin=protoc-gen-mypy=venv/bin/protoc-gen-mypy --python_out=. --mypy_out=. py_zipkin/encoding/protobuf/zipkin.proto
.PHONY: update-protobuf
update-protobuf:
curl -L https://raw.githubusercontent.com/openzipkin/zipkin-api/master/zipkin.proto > py_zipkin/encoding/protobuf/zipkin.proto
$(MAKE) build-protobuf
.PHONY: black
black:
tox -e black