SHELL := /bin/bash
VERSION := $(shell lsb_release -rs)
BUMP=minor
OS_CODENAME := $(shell lsb_release -cs)
export BUMP
.PHONY: help

help:  ## help
	@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

uv:  ## installs uv
	@if [[ ! -f ~/.local/bin/uv ]] ; then \
		curl -LsSf https://astral.sh/uv/install.sh | sh \
	fi
	@export PATH="~/.local/bin:$$PATH"
	@echo "uv is installed at: $(which uv)"
	@~/.local/bin/uv python install cpython3.13

setup: ## creates local venv and installs requirements
	@if which uv && [ ! -f .venv/bin/python ] ; then ~/.local/bin/uv python install cpython3.13 ; uv venv --python 3.13 ; fi
	@source .venv/bin/activate \
	  && ~/.local/bin/uv pip install -U wheel \
	  && ~/.local/bin/uv pip install -r requirements.txt
