From 210cb7d1a14c08eca41ff29221b83147378432a5 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Tue, 14 Apr 2026 13:01:49 +0200 Subject: [PATCH] Document Python 3.13 included by default in Trixie base image --- DOCKER_HUB.md | 11 +++++++---- README.md | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/DOCKER_HUB.md b/DOCKER_HUB.md index 0ce05dd..aca35db 100644 --- a/DOCKER_HUB.md +++ b/DOCKER_HUB.md @@ -256,13 +256,13 @@ docker run -it --rm \ ## Python Development with uv -The image includes [uv](https://docs.astral.sh/uv/), a fast Python package manager that replaces pip, venv, and pyenv. Python is not pre-installed but can be installed on demand: +The image includes Python 3.13 (from Debian Trixie) and [uv](https://docs.astral.sh/uv/), a fast Python package manager that replaces pip, venv, and pyenv: ```bash -# Install Python (persists across restarts with devbox-uv volume) -uv python install 3.14 +# Python 3.13 is available out of the box +python3 --version -# Create a virtual environment and install dependencies +# Use uv for package management uv venv uv pip install -r requirements.txt @@ -274,6 +274,9 @@ uv run python script.py # Install standalone Python tools uvx ruff check . + +# Install a newer Python version (persists with devbox-uv volume) +uv python install 3.14 ``` To persist Python installs across container restarts, add a named volume: diff --git a/README.md b/README.md index 6aab56a..6266583 100644 --- a/README.md +++ b/README.md @@ -157,13 +157,13 @@ volumes: ### Python development with uv -The image includes [uv](https://docs.astral.sh/uv/), a fast Python package manager that replaces pip, venv, and pyenv. Python is not pre-installed but can be installed on demand: +The image includes Python 3.13 (from Debian Trixie) and [uv](https://docs.astral.sh/uv/), a fast Python package manager that replaces pip, venv, and pyenv: ```bash -# Install Python (persists across restarts with devbox-uv volume) -uv python install 3.14 +# Python 3.13 is available out of the box +python3 --version -# Create a virtual environment and install dependencies +# Use uv for package management uv venv uv pip install -r requirements.txt @@ -175,6 +175,9 @@ uv run python script.py # Install standalone Python tools uvx ruff check . + +# Install a newer Python version (persists with devbox-uv volume) +uv python install 3.14 ``` Python installations are stored in `~/.local/share/uv/`. To persist them across container restarts, add the `devbox-uv` named volume to your `docker-compose.yml`: