Add retries for Python downloads (#9274)

## Summary

This uses the same approach as in the rest of uv, but with another
dedicated method for retries.

Closes https://github.com/astral-sh/uv/issues/8525.
This commit is contained in:
Charlie Marsh 2024-11-20 09:42:42 -05:00 committed by GitHub
parent 289771e311
commit 1b13036674
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 107 additions and 54 deletions

View file

@ -1,5 +1,6 @@
pub use base_client::{
AuthIntegration, BaseClient, BaseClientBuilder, UvRetryableStrategy, DEFAULT_RETRIES,
is_extended_transient_error, AuthIntegration, BaseClient, BaseClientBuilder,
UvRetryableStrategy, DEFAULT_RETRIES,
};
pub use cached_client::{CacheControl, CachedClient, CachedClientError, DataWithCachePolicy};
pub use error::{Error, ErrorKind, WrappedReqwestError};