-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 823 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 823 Bytes
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
# Simple makefile to simplify repetitive build env management tasks under posix
.PHONY: setup install tests doc build clean fresh-build
setup:
@echo "Installing uv..."
python -m pip install -U pip uv
install: setup
@echo "Installing..."
uv pip install -e .[freeze]
@echo "Installation complete."
tests: setup
@echo "Installing test dependencies..."
uv pip install -e .[tests]
@echo "Running tests..."
uv run pytest
@echo "Tests complete."
doc: setup
@echo "Installing documentation dependencies..."
uv pip install -e .[doc]
@echo "Building documentation..."
cd doc && make clean && make html && cd ..
@echo "Documentation complete."
build: setup
@echo "Freezing using pyinstaller"
uv run pyinstaller frozen.spec
clean:
@echo "Cleaning up build files..."
rm -rf build dist
fresh-build: clean build