forked from ActivityWatch/aw-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 746 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
.PHONY: build install test test-integration typecheck package clean
pip_install_args := .
ifdef DEV
pip_install_args := --editable $(pip_install_args)
endif
build: aw_qt/resources.py
pip3 install mypy
pip3 install $(pip_install_args)
install:
bash scripts/config-autostart.sh
test:
python3 -c 'import aw_qt'
test-integration:
python3 ./tests/integration_tests.py --no-modules
typecheck:
mypy aw_qt --ignore-missing-imports
precommit:
make typecheck
make test
make test-integration
package:
pyinstaller --clean --noconfirm --windowed aw-qt.spec
clean:
rm -rf build dist
rm -rf __pycache__ aw_qt/__pycache__
aw_qt/resources.py: aw_qt/resources.qrc
pip3 install 'pyqt5<5.11'
pyrcc5 -o aw_qt/resources.py aw_qt/resources.qrc