mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 15:57:26 +00:00

Fix this typo:
98523e2014/crates/uv-python/fetch-download-metadata.py (L399)
and removed an empty line in the `downloads.inc.mustache" template.
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
// Generated with `{{generated_with}}`
|
|
// From template at `{{generated_from}}`
|
|
|
|
use uv_pep440::{Prerelease, PrereleaseKind};
|
|
use crate::PythonVariant;
|
|
|
|
pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
|
|
{{#versions}}
|
|
ManagedPythonDownload {
|
|
key: PythonInstallationKey {
|
|
major: {{value.major}},
|
|
minor: {{value.minor}},
|
|
patch: {{value.patch}},
|
|
prerelease: {{value.prerelease}},
|
|
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}}
|
|
variant: {{value.variant}}
|
|
},
|
|
url: "{{value.url}}",
|
|
{{#value.sha256}}
|
|
sha256: Some("{{.}}")
|
|
{{/value.sha256}}
|
|
{{^value.sha256}}
|
|
sha256: None
|
|
{{/value.sha256}}
|
|
},
|
|
{{/versions}}
|
|
];
|