2019-08-20 10:09:41 +00:00
|
|
|
VIRTUALENV = virtualenv --python=python3
|
|
|
|
|
PYTHON = $(VENV)/bin/python
|
|
|
|
|
VENV := $(shell echo $${VIRTUAL_ENV-.venv})
|
|
|
|
|
INSTALL_STAMP = $(VENV)/.install.stamp
|
|
|
|
|
|
2013-08-07 07:33:13 +00:00
|
|
|
all: init docs test
|
|
|
|
|
|
2019-08-20 10:09:41 +00:00
|
|
|
init: $(INSTALL_STAMP)
|
|
|
|
|
$(INSTALL_STAMP): $(PYTHON) setup.py
|
|
|
|
|
$(VENV)/bin/pip install -e .
|
|
|
|
|
$(VENV)/bin/pip install tox coverage Sphinx
|
|
|
|
|
touch $(INSTALL_STAMP)
|
|
|
|
|
|
|
|
|
|
virtualenv: $(PYTHON)
|
|
|
|
|
$(PYTHON):
|
|
|
|
|
$(VIRTUALENV) $(VENV)
|
2013-08-07 07:33:13 +00:00
|
|
|
|
2019-08-20 10:09:41 +00:00
|
|
|
test: init
|
|
|
|
|
$(VENV)/bin/coverage erase
|
|
|
|
|
$(VENV)/bin/tox
|
|
|
|
|
$(VENV)/bin/coverage html
|
2013-08-07 07:33:13 +00:00
|
|
|
|
|
|
|
|
docs: documentation
|
|
|
|
|
|
2019-08-20 10:09:41 +00:00
|
|
|
documentation: init
|
|
|
|
|
$(PYTHON) setup.py build_sphinx
|
2015-07-20 16:20:11 +00:00
|
|
|
|
2019-08-20 10:09:41 +00:00
|
|
|
messages: init
|
|
|
|
|
$(PYTHON) translations.py make
|
2015-07-20 16:20:11 +00:00
|
|
|
|
2019-08-20 10:09:41 +00:00
|
|
|
compilemessages: init
|
|
|
|
|
$(PYTHON) translations.py compile
|
2020-11-29 20:58:00 +00:00
|
|
|
|
|
|
|
|
format:
|
|
|
|
|
isort model_utils tests setup.py
|