-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (27 loc) · 852 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
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
test:
cd demo && ./manage.py test --settings=celerymon.test_settings celerymon
test-travis:
cd demo && sudo $(PYTHON) manage.py test --settings=celerymon.test_settings celerymon
coverage:
export DJANGO_SETTINGS_MODULE=celerymon.test_settings && \
coverage run --branch --source=celerymon `which django-admin.py` test celerymon && \
coverage report --omit="celerymon/test*"
pep8:
flake8 celerymon
release: clean
python setup.py register sdist upload --sign
python setup.py bdist_wheel upload --sign
sphinx:
cd docs && sphinx-build -b html -d .build/doctrees . .build/html
sdist: clean
python setup.py sdist
ls -l dist