feat: add makefile

- add venv, deps, build and clean targets
- updated gitignore
This commit is contained in:
Ben Vincent 2024-12-15 19:27:24 +11:00
parent 105d43129e
commit fecdfa163c
2 changed files with 18 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
.venv
config.yaml
dist
build
*.spec

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
venv:
uv venv --python 3.11
deps: venv
source .venv/bin/activate && \
uv pip install -r requirements.txt
build: deps
source .venv/bin/activate && \
uv pip install pyinstaller && \
.venv/bin/pyinstaller --onefile puppetapi.py --distpath ./dist --workpath ./build
clean:
rm -rf ./dist ./build
rm -f ./*.spec