forked from jeffknupp/flask_sandboy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 804 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
.PHONY: all clean test dist pypi pypitest publish publishtest
all: clean test
test:
tox
clean:
-find . -name "__pycache__" | xargs rm -rf
-find . -name "*.pyc" | xargs rm -f
-find . -name '*.egg-info' -type d | xargs rm -rf
-find . -name '*.egg' -type d | xargs rm -rf
-rm -rf build
-rm -rf dist
-rm -rf docs/_build
-rm -rf htmlcov
-rm -rf .coverage
-rm -rf .tox
-rm -rf examples/pushrodr/pushrodr.db
dist:
python setup.py sdist bdist_wheel
pypitest:
twine upload -r pypitest dist/*
pypi:
twine upload dist/*
publishtest: clean dist pypitest
publish: clean dist pypi
coverage:
coverage run --source application -m py.test && coverage report
coveralls:
py.test --cov application tests/ --cov-report=term --cov-report=html
flake8:
flake8 flask_pushrod examples setup.py