forked from saxix/django-anonymoususer-permissions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
64 lines (51 loc) · 1.39 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
BUILDDIR='~build'
.mkbuilddir:
mkdir -p ${BUILDDIR}
develop:
@pip install -U pip setuptools pip-tools
@pip install -e .[dev]
compile-requirements:
@pip-compile src/requirements/install.in \
--upgrade \
--rebuild \
--no-header \
--no-emit-trusted-host \
--no-index -o src/requirements/install.pip
@pip-compile src/requirements/testing.in \
src/requirements/install.pip \
--upgrade \
--rebuild \
--no-header \
--no-emit-trusted-host \
--no-index -o src/requirements/testing.pip
@pip-compile src/requirements/develop.in \
src/requirements/install.pip \
src/requirements/testing.pip \
--upgrade \
--rebuild \
--no-header \
--no-emit-trusted-host \
--no-index -o src/requirements/develop.pip
sync-requirements:
pip-sync src/requirements/develop.pip
pip install -e .[dev]
test:
py.test -v --create-db
qa:
flake8 src/ tests/
isort -rc src/ --check-only
check-manifest
clean:
rm -fr ${BUILDDIR} dist *.egg-info .coverage coverage.xml .eggs
find src -name __pycache__ -o -name "*.py?" -o -name "*.orig" -prune | xargs rm -rf
find tests -name __pycache__ -o -name "*.py?" -o -name "*.orig" -prune | xargs rm -rf
find src/concurrency/locale -name django.mo | xargs rm -f
fullclean:
rm -fr .tox .cache db.sqlite
$(MAKE) clean
docs: .mkbuilddir
mkdir -p ${BUILDDIR}/docs
sphinx-build -aE docs/ ${BUILDDIR}/docs
ifdef BROWSE
firefox ${BUILDDIR}/docs/index.html
endif