ADR 0003: uv Package Management
- Status: Accepted
- Date: 2026-11-24
Context
Section titled “Context”The project needs one tool for Python dependency resolution, environments, locking, building, and future publishing.
Decision
Section titled “Decision”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.
Alternatives considered
Section titled “Alternatives considered”- Poetry, Pipenv, and Conda: not selected because they add competing Python workflows.
- Setuptools and Hatchling remain valid PEP 517 choices. The project uses
uv_buildfor this pure-Python package. uv maintains that backend.
Consequences
Section titled “Consequences”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.
