-
Notifications
You must be signed in to change notification settings - Fork 37
/
makefile
41 lines (32 loc) · 946 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
.PHONY: test other/verif.sh dist
default: nothing
nothing:
@ echo "This makefile does not build verif, use setup.py"
VERSION=$(shell grep __version__ verif/version.py | cut -d"=" -f2 | sed s"/ //g" | sed s"/'//g")
test:
coverage run --source verif -m unittest discover
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
coverage: test
coverage report --precision 2
coverage html -d pages/coverage
@echo "Coverage created in pages/coverage"
# Creating distribution for pip
dist:
echo $(VERSION)
rm -rf dist
python3 setup.py sdist
python3 setup.py bdist_wheel
@ echo "Next, run 'twine upload dist/*'"
clean:
python3 setup.py clean
rm -rf build/
find . -name '*.pyc' -delete
rm -rf deb_dist
rm -rf verif.egg-info
lint:
# python verif/tests/pep8_test.py
pylint -d C,R,W verif/*.py verif/tests/*.py
count:
@wc -l verif/*.py | tail -1
other/verif.sh:
python other/create_bash_completion.py > other/verif.sh