Document Python 3.13 included by default in Trixie base image

This commit is contained in:
2026-04-14 13:01:49 +02:00
parent 0a3e142b8f
commit 210cb7d1a1
2 changed files with 14 additions and 8 deletions
+7 -4
View File
@@ -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:
+7 -4
View File
@@ -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`: