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>
This commit is contained in:
Thomas Schmelzer
2026-02-05 03:22:34 +04:00
committed by GitHub
parent d9abb48f62
commit 3d9af7c4b0
2 changed files with 7 additions and 3 deletions

1
.python-version Normal file
View File

@@ -0,0 +1 @@
3.12

View File

@@ -1,8 +1,10 @@
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
PYTHON_VERSION := $(shell cat .python-version)
venv: venv:
@curl -LsSf https://astral.sh/uv/install.sh | sh @curl -LsSf https://astral.sh/uv/install.sh | sh
@uv venv --python 3.12 @uv venv --python $(PYTHON_VERSION)
.PHONY: install .PHONY: install
@@ -22,7 +24,8 @@ jupyter: install ## Install and start jupyter Lab
@uv run pip install jupyterlab @uv run pip install jupyterlab
@uv run jupyter lab @uv run jupyter lab
.PHONY: marimo .PHONY: marimo
marimo: install ## Install and start marimo marimo: install ## Install and start marimo
@uv run pip install marimo @uv run pip install marimo
@uv run marimo edit --no-token --headless . @uv run marimo edit --no-token --headless .