forked from Open-E-WEB/django-powerpages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 730 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
PYTHON_VERSION = 2.7
DJANGO_VERSION = 1.9
virtualenv:
test -d .env || virtualenv -p python$(PYTHON_VERSION) .env
develop: virtualenv
.env/bin/pip install --upgrade setuptools
.env/bin/pip install wheel
.env/bin/pip install twine
.env/bin/pip install ipdb
.env/bin/pip install Django==$(DJANGO_VERSION)
.env/bin/pip install -r requirements-test.pip
test:
.env/bin/python setup.py test
migrations:
.env/bin/python setup.py makemigrations
coverage:
.env/bin/coverage run setup.py test
.env/bin/coverage report
flake8:
.env/bin/flake8 powerpages --max-complexity=15
dist:
.env/bin/python setup.py sdist
.env/bin/python setup.py bdist_wheel --universal
upload:
.env/bin/twine upload dist/*
release: dist upload