Respect [[tool.uv.index]] in PEP 723 scripts (#9208)

## Summary

There was a typo here, combined with a lack of test coverage.

Closes https://github.com/astral-sh/uv/issues/9201.
This commit is contained in:
Charlie Marsh
2024-11-18 13:19:31 -05:00
committed by GitHub
parent ad342009af
commit 747d69dc96
3 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ pub struct ToolUv {
pub override_dependencies: Option<Vec<uv_pep508::Requirement<VerbatimParsedUrl>>>,
pub constraint_dependencies: Option<Vec<uv_pep508::Requirement<VerbatimParsedUrl>>>,
pub sources: Option<BTreeMap<PackageName, Sources>>,
pub indexes: Option<Vec<Index>>,
pub index: Option<Vec<Index>>,
}
#[derive(Debug, Error)]