-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 830 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
PYTHON_FILES = $(shell find . -type f -name "*.py" -not -path "./build/*" -not -path "./.tox/*")
CURRENT_DIR = $(CURDIR)
# Execute as root
setup:
pip3 install -U pylint pytest pycodestyle yapf wheel --user
test_all:
python3 -m unittest discover -v -s geekhours/test/
test_database:
python3 -m unittest -v geekhours/test/test_database.py
test_command:
python3 -m unittest -v geekhours/test/test_command.py
lint:
pylint -r n $(PYTHON_FILES)
pycodestyle --max-line-length=100 $(PYTHON_FILES)
yapf -d $(PYTHON_FILES)
build:
python3 setup.py sdist bdist_wheel
tox:
pip3 install -U tox --user
tox
clean:
python3 setup.py clean --all
reinstall:
make clean
make build
pip3 uninstall geekhours
pip3 install dist/geekhours-0.0.1-py3-none-any.whl
.PHONY: install test_all test_database test_command lint build clean