-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (37 loc) · 1.16 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
.PHONY: runserver
runserver:
PYTHONPATH=. DJANGO_SETTINGS_MODULE=example_project.settings django-admin runserver
.PHONY: shell
shell:
PYTHONPATH=. DJANGO_SETTINGS_MODULE=example_project.settings django-admin shell
.PHONY: i18n
i18n:
PYTHONPATH=. DJANGO_SETTINGS_MODULE=example_project.settings django-admin makemessages -l ru --keep-pot
PYTHONPATH=. DJANGO_SETTINGS_MODULE=example_project.settings django-admin compilemessages
.PHONY: deploy
deploy:
git push heroku master
.PHONY: sphinx
sphinx:
cd docs && make livehtml
.PHONY: test
test:
echo
release:
python setup.py sdist --format=zip,bztar,gztar register upload
python setup.py bdist_wheel register upload
###############################################################################
# Bumpversion targets #
###############################################################################
.PHONY: patch-version
patch-version:
bump2version patch
.PHONY: minor-version
minor-version:
bump2version minor
.PHONY: major-version
major-version:
bump2version major
.PHONY: test-bumpversion
test-bumpversion:
bump2version patch --dry-run --verbose --allow-dirty