Add support for emitting index URLs and --find-links (#1142)

Closes https://github.com/astral-sh/puffin/issues/1140.
This commit is contained in:
Charlie Marsh 2024-01-26 17:37:55 -08:00 committed by GitHub
parent abe1867a0d
commit addb94fbd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 181 additions and 33 deletions

View file

@ -80,7 +80,7 @@ impl<'a> RegistryWheelIndex<'a> {
// Collect into owned `IndexUrl`
let flat_index_urls: Vec<IndexUrl> = index_locations
.flat_indexes()
.flat_index()
.filter_map(|flat_index| match flat_index {
FlatIndexLocation::Path(_) => None,
FlatIndexLocation::Url(url) => Some(IndexUrl::Url(url.clone())),