forked from Rexeh/joystick-diagrams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
35 lines (26 loc) · 803 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
.DEFAULT_GOAL := build-exe
test: fmt lint unit-test
unit-test:
@echo "Running unit tests"
@poetry run pytest -sv --cov-report=term-missing --cov-report html --cov=joystick_diagrams tests/
fmt:
@echo "Formatting source code"
@poetry run ruff format ./joystick_diagrams ./tests
lint:
@echo "Linting source code"
@poetry run ruff check ./joystick_diagrams ./tests --fix
build-exe: make-version
@echo "Making Frozen Executable"
@python setup.py build
@echo "Creating Installer"
@cmd /C "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /Qp ./installer/config.iss
make-version:
@echo "Making version manifest"
@poetry run python joystick_diagrams/version.py
ui:
@echo "Generating UI python"
@cmd /C ".\scripts\convert_ui.bat"
pub:
@poetry publish
pub-test:
@poetry publish -r test-pypi