blob: e2329231b564b5a11bb2bc06a090bf401742dbdb [file] [log] [blame]
Aaron Ilesc18d6942013-01-06 13:12:00 +11001SHELL := /bin/bash
2
3deps:
Aaron Iles6318d8d2013-05-29 22:01:09 +10004 pip install --upgrade \
Aaron Ilesc18d6942013-01-06 13:12:00 +11005 -r requirements/development.txt \
6 -r requirements/production.txt
7
8sdist:
9 python setup.py sdist
Aaron Ilesd2017772013-12-20 22:00:16 +110010 python setup.py bdist_wheel
Aaron Ilesc18d6942013-01-06 13:12:00 +110011
Aaron Iles4ea7e192013-01-06 23:11:27 +110012register:
13 python setup.py register
Aaron Iles9d8f5262013-05-29 22:06:13 +100014 python setup.py sdist upload
Aaron Ilesd2017772013-12-20 22:00:16 +110015 python setup.py bdist_wheel upload
Aaron Ilesc18d6942013-01-06 13:12:00 +110016
17site:
18 cd docs; make html
19
20test:
21 coverage run setup.py test
22
23unittest:
24 coverage run -m unittest discover
25
26lint:
27 flake8 --exit-zero funcsigs tests
28
29coverage:
Aaron Ilesfda747b2013-05-30 21:07:55 +100030 coverage report --show-missing
Aaron Ilesc18d6942013-01-06 13:12:00 +110031
32clean:
33 python setup.py clean --all
34 find . -type f -name "*.pyc" -exec rm '{}' +
35 find . -type d -name "__pycache__" -exec rmdir '{}' +
36 rm -rf *.egg-info .coverage
37 cd docs; make clean
38
39docs: site