-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (65 loc) · 1.54 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.PHONY: core-requirements
core-requirements:
pip install "pip>=9" "setuptools>=20" "pip-tools>=1.9"
.PHONY: update-pip-requirements
update-pip-requirements: core-requirements
pip install -U "pip>=9" "setuptools>=20" "pip-tools>=1.9"
pip-compile --upgrade requirements.in
.PHONY: requirements
requirements: core-requirements
pip-sync requirements.txt
.PHONY: clean-pyc
clean-pyc:
find . -iname "*.pyc" -delete
find . -iname __pycache__ | xargs rm -rf
.PHONY: develop
develop: clean-pyc requirements
python setup.py develop
.PHONY: check
check: develop
python manage.py check
.PHONY: migrate
migrate: check
python manage.py migrate --noinput
.PHONY: runserver
runserver: migrate
python manage.py runserver
reports:
mkdir -p $@
.PHONY: pycodestyle
pycodestyle: reports requirements
set -o pipefail && $@ | tee reports/[email protected]
.PHONY: pep8
pep8: pycodestyle
.PHONY: flake8
flake8: reports requirements
set -o pipefail && $@ | tee reports/[email protected]
.PHONY: check8
check8: pycodestyle flake8
.PHONY: test
test: clean-pyc
python setup.py test
.PHONY: clean-tox
clean-tox:
rm -rf .tox
.PHONY: tox
tox: clean-pyc
tox
.PHONY: clean-all
clean-all: clean-pyc clean-tox
rm -rf *.egg-info .eggs .cache .coverage build reports
.PHONY: bump-major
bump-major: requirements
bumpversion major
.PHONY: bump-minor
bump-minor: requirements
bumpversion minor
.PHONY: bump-patch
bump-patch: requirements
bumpversion patch
.PHONY: docs
docs: requirements
python setup.py build_sphinx
.PHONY: ship-it
ship-it: requirements clean-pyc
python setup.py ship_it