-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
69 lines (51 loc) · 1.31 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
#####################################################
# MAIN PROJECT COMMANDS
#####################################################
update-pip:
pip3 install --upgrade pip
update-build:
python3 -m pip install --upgrade build
install-all: update-pip install-dev install
install:
pip3 install -r requirements-dev.txt
pip3 install -r requirements.txt
install-dev:
pip3 install --upgrade pip
pip3 install -r requirements-dev.txt
upgrade: update-pip
pip3 install -r requirements-dev.txt --upgrade
pip3 install -r requirements.txt --upgrade
clean:
rm -rf ./log/
rm -rf ./build/
rm -rf ./dist/
rm -rf ./images/*.pinavault
rm -rf ./src/*.pyo
rm -rf ./src/__pycache__
rm -rf ./src/*.egg-info/
rm -rf ./src/pinavault/*.c
rm -rf ./src/pinavault/*.so
rm -rf ./src/pinavault/__pycache__
run:
python3 ./main.py
publish: clean pack upload
debug:
python3 -m pdb ./main.py
doc:
pydoc -w ./src
pack:
python3 -m build
upload:
scp ./dist/*.whl ovikrai@192.168.0.9:~/packages/
scp ./dist/*.tar.gz ovikrai@192.168.0.9:~/packages/
#####################################################
# TESTING AND LINTING
#####################################################
test-unit-resources:
coverage run -m pytest -vv
test-unit:
coverage run -m pytest -k $(TEST_NAME) -vv
test-cover:
coverage report
test-clean:
coverage erase