-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 913 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
.PHONY: clean lint pre-commit pyspec pyinstaller deps
#################################################################################
# COMMANDS #
#################################################################################
## Install pre-commit hooks
pre-commit:
pre-commit install
## Delete all artifacts
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
find . -type d -name "*egg-info" -exec rm -r {} \;
rm -rf build/ dist/
## Lint using pre-commit
lint:
pre-commit run --all-files
## Install dependencies for development
deps:
pip install --upgrade -r src/client/requirements.txt
## Make pyinstaller spec file
pyspec:
pyi-makespec --paths=src/client/ --windowed --onefile --name palms src/client/gui.py
## Build executable with pyinstaller
pyinstaller:
pyinstaller palms.spec