-
-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 698 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 698 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
27
28
29
30
31
32
33
34
35
VIRTUALENV = virtualenv --python=python3
PYTHON = $(VENV)/bin/python
VENV := $(shell echo $${VIRTUAL_ENV-.venv})
INSTALL_STAMP = $(VENV)/.install.stamp
all: init docs test
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)
test: init
$(VENV)/bin/coverage erase
$(VENV)/bin/tox
$(VENV)/bin/coverage html
docs: documentation
documentation: init
$(PYTHON) setup.py build_sphinx
messages: init
$(PYTHON) translations.py make
compilemessages: init
$(PYTHON) translations.py compile
format:
isort model_utils tests setup.py