File: Makefile

package info (click to toggle)
django-model-utils 4.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 552 kB
  • sloc: python: 3,438; makefile: 181
file content (35 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
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