Add support for local directories with --index-url (#4226)

## Summary

Closes #4078.
This commit is contained in:
Charlie Marsh 2024-06-10 19:27:04 -07:00 committed by GitHub
parent f296ef08d6
commit 656fc427b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 219 additions and 31 deletions

View file

@ -128,15 +128,15 @@ impl From<ErrorKind> for Error {
#[derive(Debug, thiserror::Error)]
pub enum ErrorKind {
/// An invalid URL was provided.
#[error(transparent)]
UrlParseError(#[from] url::ParseError),
UrlParse(#[from] url::ParseError),
/// A base URL could not be joined with a possibly relative URL.
#[error(transparent)]
JoinRelativeError(#[from] pypi_types::JoinRelativeError),
JoinRelativeUrl(#[from] pypi_types::JoinRelativeError),
#[error("Expected a file URL, but received: {0}")]
NonFileUrl(Url),
/// Dist-info error
#[error(transparent)]
DistInfo(#[from] install_wheel_rs::Error),