forked from aliles/filemagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (40 loc) · 929 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
48
49
50
51
52
53
54
55
56
SHELL := /bin/bash
# SET UP
# install software dependencies
deps:
pip install --upgrade \
-r requirements/development.txt \
-r requirements/production.txt
# BUILD
# build and release packages
build:
python setup.py sdist
python setup.py bdist_wheel
register:
python setup.py register
upload:
python setup.py sdist upload
python setup.py bdist_wheel upload
# DOCUMENTATION
# build user documentation
site:
cd docs; make html
docs: site
# TESTING
# unit tests, coverage testing and static type checking
coverage:
coverage report --show-missing
lint:
flake8 --exit-zero magic tests
test:
coverage run setup.py test
unittest:
coverage run -m unittest discover
# CLEAN
# remove build artifacts
clean:
python setup.py clean --all
find . -type f -name "*.pyc" -exec rm '{}' +
find . -type d -name "__pycache__" -exec rmdir '{}' +
rm -rf *.egg-info .coverage
cd docs; make clean