| 1 | virtual environment (.venv) | holds a link to one Python and the packages one project uses | the project folder | nothing; Python reads its config file at startup | an import error from a Python outside .venv |
|---|
| 2 | index client | fetches index pages, metadata and files, and picks the wheel that fits | the uv process | each download’s hash against the index or the lockfile | a refused download whose hash doesn’t match |
|---|
| 3 | PyPI | lists every file of every public release | the internet, pypi.org/simple | nothing about your project; it serves what maintainers uploaded | no wheel for your platform, so uv builds from source |
|---|
| 4 | company index (fxco) | serves the company’s own packages | the company network | nothing uv relies on; uv asks it only for names pinned to it | rates-client taken from the wrong index: its source pin is missing |
|---|
| 5 | pyproject.toml | lists what the project needs, as version ranges | the project root | nothing; uv only reads the ranges in it | ranges so narrow that no set of versions fits them all |
|---|
| 6 | resolver | picks one version of every package that fits every range | the uv process, between pyproject.toml and the lockfile | every range, platform condition and Python requirement in the tree | “No solution found”, with the clashing ranges spelled out |
|---|
| 7 | uv.lock | records exact versions and file hashes for every supported platform | the project root, committed to git | that the ranges it was made from still match pyproject.toml | CI stopping because the lockfile “needs to be updated” |
|---|
| 8 | installer | makes .venv hold exactly what the lockfile lists | the project’s .venv | each package’s version, platform and build settings | a package you installed by hand, gone after uv sync |
|---|
| 9 | cache | keeps index pages, unzipped wheels and built wheels for every project | your home directory, ~/.cache/uv | whether a saved index page is still fresh | slow full copies and a warning when it sits on another disk |
|---|
| 10 | build frontend | turns source code into a wheel in a throwaway environment | the uv process, for source archives and git | that the build backend’s own requirements resolve | a compiler or build error in the middle of uv lock or uv sync |
|---|
| 11 | Python finder | chooses the interpreter a project’s environment is made from | the uv process, before .venv exists | the version against .python-version and requires-python | a different Python than you expected, taken from PATH or downloaded |
|---|
| 12 | .python-version | names the Python version this checkout uses | the project root | nothing; the Python finder reads it | every command failing when the pin is outside requires-python |
|---|
| 13 | managed Pythons | prebuilt interpreters uv downloaded and unpacked | ~/.local/share/uv/python | nothing; they are finished builds | broken environments after uninstalling the Python they link to |
|---|
| 14 | tools | keep one environment per command-line tool | ~/.local/share/uv/tools, with commands in ~/.local/bin | nothing; each tool resolves on its own | “command not found” when ~/.local/bin isn’t on PATH |
|---|
| 15 | workspace member (rates-client) | a second package sharing the root’s lockfile and environment | the repository, listed in the root pyproject.toml | that all members accept one set of versions and one Python range | one failed lock for every member when two need clashing versions |
|---|
| · | sources ([tool.uv.sources]) | say where uv fetches one package: an index, git, a path or the workspace | pyproject.toml | nothing outside uv; other tools ignore them | users of the published package getting a different version from an index |
|---|
| · | dependency groups | list packages for development only, such as pytest | pyproject.toml | nothing; groups are never published | test tools inside a production image, because the sync kept the dev group |
|---|