-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (37 loc) · 912 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
40
41
42
43
44
45
init: venv
( \
. venv/bin/activate; \
pre-commit install; \
deactivate; \
)
venv: venv/.done
venv/.done: requirements.txt requirements-dev.txt
python3 -m venv venv
( \
. venv/bin/activate; \
pip3 install uv; \
uv pip install -r requirements-dev.txt; \
deactivate; \
)
touch venv/.done
build: venv
( \
. venv/bin/activate; \
poetry build; \
deactivate;
)
package: dist/turbostage
version=`grep "__version__" turbostage/__init__.py | sed -e 's/^__version__ = "\(.*\)"$$/\1/'`; \
zip -j turbostage-linux-v$${version}.zip dist/turbostage
dist/turbostage: venv turbostage/*.py pyproject.toml
( \
. venv/bin/activate; \
poetry-dynamic-versioning; \
pyinstaller --onefile --add-data "turbostage/content/splash.jpg:turbostage/content" -n turbostage turbostage/main.py; \
deactivate; \
)
.PHONY: test
test:
python -m xmlrunner discover -o test-reports -s test
clean:
${RM} -rf venv *~