forked from saxix/django-adminfilters
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (33 loc) · 938 Bytes
/
Makefile
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
36
37
38
39
40
41
42
VERSION=2.0.0
BUILDDIR=${PWD}/~build
BINDIR=${PWD}/~build/bin
export PYTHONPATH:=${PWD}/tests/:${PWD}/src
DJANGO?='1.7.x'
.mkbuilddir:
mkdir -p ${BUILDDIR}
develop:
# pip install -e .[dev]
pip install -r src/requirements/testing.pip
pip install -r src/requirements/develop.pip
demo:
cd tests/demo && python manage.py migrate
cd tests/demo && python manage.py loaddata demoproject
cd tests/demo && python manage.py runserver
clean:
rm -fr ${BUILDDIR} dist *.egg-info .coverage coverage.xml pytest.xml .cache MANIFEST build .pytest_cache
find . -name __pycache__ | xargs rm -rf
find . -name "*.py?" -o -name "*.orig" -prune | xargs rm -rf
qa:
flake8 src tests
isort -rc src tests --check-only
check-manifest
fullclean:
rm -fr .tox .cache
rm -fr *.sqlite
$(MAKE) clean
docs: mkbuilddir
mkdir -p ${BUILDDIR}/docs
sphinx-build -aE docs/source ${BUILDDIR}/docs
ifdef BROWSE
firefox ${BUILDDIR}/docs/index.html
endif