Document Python 3.13 included by default in Trixie base image
This commit is contained in:
+7
-4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user