fix: lock against public PyPI so the image builds outside the workstation

uv.lock was originally resolved with the workstation's globally-configured
dexterenergy private artifact registry as the default index, baking that
URL into every `source = { registry = ... }` entry. Inside Docker that
401s.

- pyproject.toml: declare https://pypi.org/simple as the project's
  default uv index (overrideable, but pins intent)
- uv.lock: regenerated with UV_DEFAULT_INDEX=https://pypi.org/simple and
  no UV_INDEX so every source now points at public PyPI

Reproduce: `UV_DEFAULT_INDEX=https://pypi.org/simple UV_INDEX= uv lock`
This commit is contained in:
João Pedro Battistella Nadas
2026-06-09 15:35:58 +02:00
parent 94969a0f46
commit cc92d0ce49
2 changed files with 418 additions and 410 deletions

View File

@@ -8,3 +8,11 @@ dependencies = [
"uvicorn[standard]>=0.32", "uvicorn[standard]>=0.32",
"httpx>=0.27", "httpx>=0.27",
] ]
# Pin to public PyPI explicitly. Without this, uv inherits whichever index
# the workstation has configured globally — e.g. the dexterenergy private
# artifact registry — and bakes it into uv.lock, which 401s inside Docker.
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
default = true

820
uv.lock generated

File diff suppressed because it is too large Load Diff