Skip to content

fix(python-uv): use configured indexes when generating locks - #984

Open
narayana006 wants to merge 1 commit into
aws:developfrom
narayana006:fix/uv-project-index-options
Open

narayana006 wants to merge 1 commit into
aws:developfrom
narayana006:fix/uv-project-index-options

Conversation

@narayana006

Copy link
Copy Markdown

Issue #, if available: Independently reproduced.

Description of changes

PythonUvDependencyBuilder passes UvConfig.index_url and extra_index_urls to installation, but omits them from uv lock. A pyproject.toml build without a lock therefore cannot resolve dependencies available only on those indexes. Share the existing index arguments with lock generation; installation arguments and existing-lock behavior remain unchanged.

Description of how you validated changes

  • Real UV 0.11.17, offline local package index and a valid universal wheel: two fresh-lock cases fail before the fix; all five regression cases pass afterward. Controls cover existing locks, primary/extra indexes and an unconfigured index.
  • make pr on Python 3.10.20: 1,220 tests and 64 subtests passed; coverage 95.73%; Ruff and Black passed. RUST_LOG was unset because an inherited value also fails the existing Rust logging test on unchanged upstream.
  • Affected unit/functional tests on Python 3.15.2: 211 tests and 53 subtests passed.
  • Full OS/runtime and language-integration CI matrix not run locally; no AWS resources used.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@narayana006
narayana006 requested a review from a team as a code owner November 30, 2026 21:17
@github-actions github-actions Bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant