forked from ActivityWatch/aw-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 854 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
.PHONY: build install test test-integration typecheck package clean
build: aw_qt/resources.py
# Workaround for https://github.com/python-poetry/poetry/issues/1338#issuecomment-571618450
cp .gitignore .gitignore.backup
grep -v 'aw_qt/resources.py' .gitignore.backup > .gitignore
poetry install
mv .gitignore.backup .gitignore
rm -f .gitignore.backup
install:
bash scripts/config-autostart.sh
test:
python -c 'import aw_qt'
test-integration:
python ./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
pyrcc5 -o aw_qt/resources.py aw_qt/resources.qrc