You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/uv-settings/src/settings.rs
+68-35Lines changed: 68 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ use uv_pep508::Requirement;
14
14
use uv_pypi_types::{SupportedEnvironments,VerbatimParsedUrl};
15
15
use uv_python::{PythonDownloads,PythonPreference,PythonVersion};
16
16
use uv_resolver::{AnnotationStyle,ExcludeNewer,PrereleaseMode,ResolutionMode};
17
+
use uv_static::EnvVars;
17
18
18
19
/// A `pyproject.toml` with an (optional) `[tool.uv]` section.
19
20
#[allow(dead_code)]
@@ -41,6 +42,9 @@ pub struct Options {
41
42
#[serde(flatten)]
42
43
pubtop_level:ResolverInstallerOptions,
43
44
45
+
#[serde(flatten)]
46
+
pubinstall_mirrors:InstallMirrorOptions,
47
+
44
48
#[serde(flatten)]
45
49
pubpublish:PublishOptions,
46
50
@@ -224,37 +228,6 @@ pub struct GlobalOptions {
224
228
"#
225
229
)]
226
230
pubconcurrent_installs:Option<NonZeroUsize>,
227
-
/// Mirror URL for downloading managed Python installations.
228
-
///
229
-
/// By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/indygreg/python-build-standalone).
230
-
/// This variable can be set to a mirror URL to use a different source for Python installations.
231
-
/// The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
232
-
///
233
-
/// Distributions can be read from a local directory by using the `file://` URL scheme.
/// Mirror URL for downloading managed Python installations.
666
+
///
667
+
/// By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/indygreg/python-build-standalone).
668
+
/// This variable can be set to a mirror URL to use a different source for Python installations.
669
+
/// The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
670
+
///
671
+
/// Distributions can be read from a local directory by using the `file://` URL scheme.
0 commit comments