File size: 762 Bytes
a793e22 | 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 | .PHONY: help dev prod test lint sbom hash manifest
help:
@echo "Targets: dev, prod, test, lint, sbom, hash, manifest"
dev:
python -m venv .venv && . .venv/bin/activate && pip install -U pip && pip install fastapi uvicorn pydantic httpx rich
UVICORN_RELOAD=true uvicorn belellex.server.app:app --reload
prod:
python -m venv .venv && . .venv/bin/activate && pip install -U pip && pip install fastapi uvicorn pydantic gunicorn
gunicorn -k uvicorn.workers.UvicornWorker belellex.server.app:app --bind 0.0.0.0:8000
test:
@echo "Add unit tests (pytest)"; exit 0
lint:
@echo "Add linter (ruff/flake8)"; exit 0
sbom:
@echo "SBOM placeholder" > dist/SBOM.txt
hash:
@python scripts/release/hash_all.py
manifest:
@python scripts/release/build_manifest.py
|