-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
37 lines (27 loc) · 711 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
.PHONY: test
dev:
pip install setuptools pytest black twine flake8
ci:
py.test --junitxml=report.xml
test:
python3 setup.py test
pytest
coverage:
py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=totalpass --junitxml=report.xml tests
flake8:
black .
flake8 --ignore=E501,F401,W503 totalpass
clean:
rm -fr build dist .egg totalpass.egg-info
rm -fr *.mp3 .pytest_cache coverage.xml report.xml htmlcov
find . | grep __pycache__ | xargs rm -fr
find . | grep .pyc | xargs rm -f
uninstall:
pip uninstall -y totalpass
install:
python3 setup.py install
build:
python3 setup.py sdist bdist_wheel
publish:
python3 setup.py sdist bdist_wheel
twine upload dist/*