Skip to content

ADR 0003: uv Package Management

  • Status: Accepted
  • Date: 2026-11-24

The project needs one tool for Python dependency resolution, environments, locking, building, and future publishing.

Use uv exclusively for Python dependency and environment management. Commit uv.lock, use PEP 621 project metadata, and use the PEP 517 uv_build backend. Keep Node/npm limited to the Starlight documentation toolchain.

  • Poetry, Pipenv, and Conda: not selected because they add competing Python workflows.
  • Setuptools and Hatchling remain valid PEP 517 choices. The project uses uv_build for this pure-Python package. uv maintains that backend.

Local and CI installs use locked uv sync. uv_build is suitable while Titanspan remains pure Python; extension modules would trigger a backend review.

The local executable must meet the build backend requirement. CI pins a tested uv release, and the backend is bounded below 0.14.