From 5b9cc198f07e00afb60810029f01aaad54ce42fa Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Fri, 10 Jan 2025 22:10:13 +0400 Subject: [PATCH] Create Makefile --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c2d646b --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.DEFAULT_GOAL := help + +venv: + @curl -LsSf https://astral.sh/uv/install.sh | sh + @uv venv + + +.PHONY: install +install: venv ## Install all dependencies (in the virtual environment) defined in requirements.txt + @uv pip install --upgrade pip + @uv pip install -r requirements.txt + + +.PHONY: help +help: ## Display this help screen + @echo -e "\033[1mAvailable commands:\033[0m" + @grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort + + +.PHONY: jupyter +jupyter: install ## Install and start jupyter Lab + @uv run pip install jupyterlab + @uv run jupyter lab