From 3d9af7c4b0c3c051172463353d8a7ab4b960bc67 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Thu, 5 Feb 2026 03:22:34 +0400 Subject: [PATCH] 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 * Update Makefile --------- Co-authored-by: Claude Opus 4.5 --- .python-version | 1 + Makefile | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/Makefile b/Makefile index 979800a..3df86fd 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ .DEFAULT_GOAL := help +PYTHON_VERSION := $(shell cat .python-version) + venv: @curl -LsSf https://astral.sh/uv/install.sh | sh - @uv venv --python 3.12 + @uv venv --python $(PYTHON_VERSION) .PHONY: install @@ -22,7 +24,8 @@ 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 . + @uv run pip install marimo + @uv run marimo edit --no-token --headless .