1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
mod activation;
pub mod cli;
mod config;
pub mod consts;
mod environment;
mod install;
mod install_pypi;
mod lock_file;
mod prefix;
mod progress;
mod project;
mod prompt;
mod repodata;
pub mod task;
#[cfg(unix)]
pub mod unix;
pub mod util;
pub mod utils;

mod pypi_marker_env;
mod pypi_tags;

pub use activation::get_activation_env;
pub use lock_file::load_lock_file;
pub use lock_file::UpdateLockFileOptions;
pub use project::{
    manifest::{EnvironmentName, FeatureName},
    DependencyType, Project, SpecType,
};
pub use task::{
    CmdArgs, ExecutableTask, FindTaskError, FindTaskSource, RunOutput, SearchEnvironments, Task,
    TaskDisambiguation, TaskExecutionError, TaskGraph, TaskGraphError,
};

use rattler_networking::retry_policies::ExponentialBackoff;

/// The default retry policy employed by pixi.
/// TODO: At some point we might want to make this configurable.
pub fn default_retry_policy() -> ExponentialBackoff {
    ExponentialBackoff::builder().build_with_max_retries(3)
}