-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (31 loc) · 764 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
.PHONY: run install install_all refresh uninstall develop build_dist test coverage clean
MODULE := karuha
PIP_MODULE := KaruhaBot
all: clean test lint build_dist
refresh: clean develop test lint
run:
python -m ${MODULE}
build:
python setup.py build
build_dist: test
python setup.py sdist bdist_wheel
install:
pip install .
install_all:
pip install .[all]
develop:
pip install -e .[all]
lint:
flake8 ${MODULE}/ tests/ --exclude __init__.py --count --max-line-length=127 --extend-ignore=W293,E402
test:
python -m unittest
coverage:
coverage run --source ${MODULE} --parallel-mode -m unittest
coverage combine
coverage html -i
uninstall:
pip uninstall ${PIP_MODULE} -y || true
clean:
rm -rf build
rm -rf dist
rm -rf ${PIP_MODULE}.egg-info