forked from gaogaotiantian/viztracer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 770 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
.PHONY: refresh build install build_dist json release lint test clean
refresh: clean build install lint
build:
python setup.py build
install:
python setup.py install
build_dist:
make clean
python setup.py sdist bdist_wheel
pip install dist/*.whl
make test
json:
python example/generate_examples.py
release:
python -m twine upload dist/*
lint:
flake8 src/ tests/ example/ --exclude "src/viztracer/attach_process/*" --count --ignore=W503 --max-line-length=127 --statistics
mypy src/ --exclude 'src/viztracer/attach_process/.*'
test:
python -m unittest
clean:
rm -rf __pycache__
rm -rf tests/__pycache__
rm -rf src/viztracer/__pycache__
rm -rf build
rm -rf dist
rm -rf viztracer.egg-info
rm -rf src/viztracer.egg-info
pip uninstall -y viztracer