-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
42 lines (32 loc) · 970 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
.PHONY: clean test check publish
.DEFAULT: help
help:
@echo "make test"
@echo " run tests"
@echo "make clean"
@echo " clean python cache files"
@echo "make doc"
@echo " build sphinx documentation"
# @echo "make publish"
# @echo " publish the lib to the pypi repository"
test:
python setup.py test
clean-pyc:
@find . -name '*.pyc' -delete
@find . -name '__pycache__' -type d | xargs rm -fr
@find . -name '.pytest_cache' -type d | xargs rm -fr
clean-dist:
@find . -name 'dist' -type d | xargs rm -fr
@find . -name 'build' -type d | xargs rm -fr
@find . -name '*.egg-info' -type d | xargs rm -fr
clean-migrations:
@find . -name 'migrations' -type d | xargs rm -fr
@find . -name '*.db' -delete
clean:clean-pyc clean-dist clean-migrations
@echo "## Clean all data."
check:
flake8 --ignore=E501,W291,F405,F403,W601 --exclude=tests,migrations,__init__.py,.eggs
doc:
cd docs; make html
publish:
python setup.py publish