Add support for unnamed Git and HTTP requirements (#2578)

## Summary

Enables, e.g., `uv pip install
git+https://github.com/pallets/flask.git`.

Part of: https://github.com/astral-sh/uv/issues/313.
This commit is contained in:
Charlie Marsh 2024-03-21 09:44:54 -04:00 committed by GitHub
parent fc9761d020
commit 2979918320
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 517 additions and 273 deletions

View file

@ -225,6 +225,7 @@ impl From<reqwest::Error> for ErrorKind {
Self::ReqwestError(BetterReqwestError::from(error))
}
}
impl From<reqwest_middleware::Error> for ErrorKind {
fn from(error: reqwest_middleware::Error) -> Self {
if let reqwest_middleware::Error::Middleware(ref underlying) = error {