forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 734 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 734 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
.PHONY: docs test clean isort
VENV:=build/venv
export DJANGO_SETTINGS_MODULE?=pytest_django_test.settings_sqlite_file
testenv: $(VENV)/bin/pytest
test: $(VENV)/bin/pytest
$(VENV)/bin/pip install -e .
$(VENV)/bin/py.test
$(VENV)/bin/python $(VENV)/bin/pip:
virtualenv $(VENV)
$(VENV)/bin/pytest: $(VENV)/bin/python requirements.txt
$(VENV)/bin/pip install -Ur requirements.txt
touch $@
$(VENV)/bin/sphinx-build: $(VENV)/bin/pip
$(VENV)/bin/pip install sphinx
docs: $(VENV)/bin/sphinx-build
SPHINXBUILD=../$(VENV)/bin/sphinx-build $(MAKE) -C docs html
# See setup.cfg for configuration.
isort:
find pytest_django tests -name '*.py' -exec isort {} +
clean:
rm -rf bin include/ lib/ man/ pytest_django.egg-info/ build/