mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 02:40:11 +00:00
Whew this is a lot. The user-facing changes are: - `uv toolchain` to `uv python` e.g. `uv python find`, `uv python install`, ... - `UV_TOOLCHAIN_DIR` to` UV_PYTHON_INSTALL_DIR` - `<UV_STATE_DIR>/toolchains` to `<UV_STATE_DIR>/python` (with [automatic migration](https://github.com/astral-sh/uv/pull/4735/files#r1663029330)) - User-facing messages no longer refer to toolchains, instead using "Python", "Python versions" or "Python installations" The internal changes are: - `uv-toolchain` crate to `uv-python` - `Toolchain` no longer referenced in type names - Dropped unused `SystemPython` type (previously replaced) - Clarified the type names for "managed Python installations" - (more little things)
32 lines
1,022 B
Text
32 lines
1,022 B
Text
// DO NOT EDIT
|
|
//
|
|
// Generated with `{{generated_with}}`
|
|
// From template at `{{generated_from}}`
|
|
|
|
pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
|
|
{{#versions}}
|
|
ManagedPythonDownload {
|
|
key: PythonInstallationKey {
|
|
major: {{value.major}},
|
|
minor: {{value.minor}},
|
|
patch: {{value.patch}},
|
|
implementation: LenientImplementationName::Known(ImplementationName::{{value.name}}),
|
|
arch: Arch(target_lexicon::Architecture::{{value.arch}}),
|
|
os: Os(target_lexicon::OperatingSystem::{{value.os}}),
|
|
{{#value.libc}}
|
|
libc: Libc::Some(target_lexicon::Environment::{{.}}),
|
|
{{/value.libc}}
|
|
{{^value.libc}}
|
|
libc: Libc::None,
|
|
{{/value.libc}}
|
|
},
|
|
url: "{{value.url}}",
|
|
{{#value.sha256}}
|
|
sha256: Some("{{.}}")
|
|
{{/value.sha256}}
|
|
{{^value.sha256}}
|
|
sha256: None
|
|
{{/value.sha256}}
|
|
},
|
|
{{/versions}}
|
|
];
|