Support relative file: paths for --find-links (#1147)

Just for consistency.
This commit is contained in:
Charlie Marsh 2024-01-26 19:48:25 -08:00 committed by GitHub
parent 4e19e6846d
commit 15ca17a68d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 19 deletions

View file

@ -714,6 +714,7 @@ fn parse_extras(cursor: &mut Cursor) -> Result<Vec<ExtraName>, Pep508Error> {
/// - `file:///home/ferris/project/scripts/...`
/// - `file:../editable/`
/// - `../editable/`
/// - `https://download.pytorch.org/whl/torch_stable.html`
fn parse_url(cursor: &mut Cursor, working_dir: Option<&Path>) -> Result<VerbatimUrl, Pep508Error> {
// wsp*
cursor.eat_whitespace();