-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
31 lines (25 loc) · 710 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
.PHONY: flake8 demo test coverage dist publish
flake8:
flake8
demo:
python demo.py
test:
which python
python --version
which django-admin.py
python -c 'import django; print("Django version: " + django.get_version())'
PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings \
django-admin.py test -v 2 tests
coverage:
coverage erase
PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings coverage run --source=easy_pjax \
`which django-admin` test tests
coverage report -m
coverage html
dist:
python setup.py sdist bdist_wheel
publish:
python setup.py sdist bdist_wheel upload
# You probably want to also tag the version now:
# git tag -a <version> -m 'version <version>'
# git push --tags