From fecdfa163c78cbd320ecc2eb3b0c0a0a1275da19 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 15 Dec 2024 19:27:24 +1100 Subject: [PATCH] feat: add makefile - add venv, deps, build and clean targets - updated gitignore --- .gitignore | 3 +++ Makefile | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 4a4c19a..e17335e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .venv config.yaml +dist +build +*.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9b47aa1 --- /dev/null +++ b/Makefile @@ -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