-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 873 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (20 loc) · 873 Bytes
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
.PHONY: help clean-pyc lint test shell coverage html publish
.DEFAULT_GOAL := help
help: ## See what commands are available.
@echo "clean-pyc - remove Python file artifacts"
@echo "i18n - extract the marked strings to gettext po files."
@echo "l10n - generate the gettext mo files."
@echo "publish - publishes a new version to pypi."
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
develop: clean-pyc
pip install -r requirements.txt
i18n:
cd ls/joyful && django-admin makemessages --all
l10n:
cd ls/joyful && django-admin compilemessages
publish:
rm -f dist/* && python setup.py sdist bdist_wheel && twine upload dist/* && echo 'Success! Go to https://pypi.python.org/pypi/ls.joyful and check that all is well.'
python -m webbrowser https://pypi.python.org/pypi/ls.joyful/#history