Files
ISLP_labs/Makefile
Thomas Schmelzer 3d9af7c4b0 Add Python version 3.12 (#74)
* Add Python version 3.12

Very useful for uv based jobs and tasks

* Read Python version from .python-version file in Makefile

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update Makefile

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 15:22:34 -08:00

32 lines
843 B
Makefile

.DEFAULT_GOAL := help
PYTHON_VERSION := $(shell cat .python-version)
venv:
@curl -LsSf https://astral.sh/uv/install.sh | sh
@uv venv --python $(PYTHON_VERSION)
.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
.PHONY: marimo
marimo: install ## Install and start marimo
@uv run pip install marimo
@uv run marimo edit --no-token --headless .