chore: scaffold python project with faker-based name generator and makefile build

This commit is contained in:
2024-12-12 04:22:47 +00:00
parent 4508c9b029
commit c699ebf341
7 changed files with 131 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
BIN = ./.venv/bin/
PYTHON = ./.venv/bin/python
PIP = ./.venv/bin/pip
APP_NAME=random-name
all: install build
ensure_repo:
-@git init
ensure_env: ensure_repo
-@python3 -m venv .venv
install: ensure_env
$(PIP) install -e .
format: ensure_env
$(PIP) install shed
. $(BIN)/activate && shed
build: ensure_env
$(MAKE) format
$(PIP) install build
$(PYTHON) -m build
serve: ensure_env
$(BIN)$(APP_NAME) --port=3028
run: ensure_env
$(BIN)$(APP_NAME) --port=3028