uv_configuration/
python_upgrade.rs1#[derive(Debug, Clone, Copy)]
3pub enum PythonUpgradeSource {
4 Install,
6 Upgrade,
8}
9
10impl std::fmt::Display for PythonUpgradeSource {
11 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12 match self {
13 Self::Install => write!(f, "uv python install --upgrade"),
14 Self::Upgrade => write!(f, "uv python upgrade"),
15 }
16 }
17}
18
19#[derive(Debug, Clone, Copy)]
21pub enum PythonUpgrade {
22 Enabled(PythonUpgradeSource),
24 Disabled,
26}