forked from saxix/django-admin-extra-buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 964 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
43
44
45
46
47
BUILDDIR=${PWD}/~build
.mkbuilddir:
@mkdir -p ${BUILDDIR}
help:
echo
demo:
cd tests && ./manage.py migrate
cd tests && ./manage.py runserver
develop:
python3 -m venv .venv
.venv/bin/pip install -U pip setuptools
.venv/bin/pip install -e .[dev,test,docs]
clean:
# cleaning
@rm -fr dist '~build' coverage.xml pytest.xml .*.sqlite .pytest_cache .coverage src/django_admin_extra_buttons.egg-info
@find . -name __pycache__ -o -name .eggs | xargs rm -rf
@find . -name "*.py?" -o -name ".DS_Store" -o -name "*.orig" -o -name "*.min.min.js" -o -name "*.min.min.css" -prune | xargs rm -rf
fullclean:
@rm -rf .tox .cache
$(MAKE) clean
lint:
@flake8 src/
@isort -c src/
release:
tox
rm -fr dist/
./setup.py sdist
twine upload dist/
coverage:
tox -e d40-py39 -- --create-db --cov-report=xml --cov-report=term --junitxml=pytest.xml
docs: .mkbuilddir
@sh docs/to_gif.sh docs/images
@mkdir -p ${BUILDDIR}/docs
mkdocs build
.PHONY: build docs