Remove overloaded use of 'audit' (#18427)

## Summary

Once `uv audit` lands, this will be pretty confusing to users IMO.

I've changed it to "Checked" to demo-run the changes, but I'd definitely
appreciate opinions on a better term for this (scanned? validated?)

## Test Plan

Bumped so many snapshots.

---------

Signed-off-by: William Woodruff <william@astral.sh>
This commit is contained in:
William Woodruff
2026-03-13 22:17:06 +08:00
committed by GitHub
parent e979ed7a03
commit 7319e4699c
20 changed files with 317 additions and 317 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ Resolved 2 packages in 0.33ms
$ uv sync $ uv sync
Resolved 2 packages in 0.70ms Resolved 2 packages in 0.70ms
Audited 1 package in 0.02ms Checked 1 package in 0.02ms
``` ```
See the [project documentation](https://docs.astral.sh/uv/guides/projects/) to get started. See the [project documentation](https://docs.astral.sh/uv/guides/projects/) to get started.
+3 -3
View File
@@ -220,7 +220,7 @@ impl TestContext {
"Prepared", "Prepared",
"Installed", "Installed",
"Uninstalled", "Uninstalled",
"Audited", "Checked",
] { ] {
self.filters.push(( self.filters.push((
format!("{verb} \\d+ packages?"), format!("{verb} \\d+ packages?"),
@@ -2236,12 +2236,12 @@ pub fn run_and_format_with_status<T: AsRef<str>>(
"Resolved", "Resolved",
"Prepared", "Prepared",
"Installed", "Installed",
"Audited", "Checked",
"Uninstalled", "Uninstalled",
] ]
.iter(), .iter(),
WindowsFilters::Universal => { WindowsFilters::Universal => {
["Prepared", "Installed", "Audited", "Uninstalled"].iter() ["Prepared", "Installed", "Checked", "Uninstalled"].iter()
} }
} { } {
snapshot = snapshot.replace( snapshot = snapshot.replace(
+1 -1
View File
@@ -340,7 +340,7 @@ pub(crate) async fn pip_install(
debug!("Requirement satisfied: {requirement}"); debug!("Requirement satisfied: {requirement}");
} }
} }
DefaultInstallLogger.on_audit(requirements.len(), start, printer, dry_run)?; DefaultInstallLogger.on_check(requirements.len(), start, printer, dry_run)?;
return Ok(ExitStatus::Success); return Ok(ExitStatus::Success);
} }
+6 -6
View File
@@ -17,7 +17,7 @@ use crate::printer::Printer;
/// A trait to handle logging during install operations. /// A trait to handle logging during install operations.
pub(crate) trait InstallLogger { pub(crate) trait InstallLogger {
/// Log the completion of the audit phase. /// Log the completion of the audit phase.
fn on_audit( fn on_check(
&self, &self,
count: usize, count: usize,
start: std::time::Instant, start: std::time::Instant,
@@ -62,7 +62,7 @@ pub(crate) trait InstallLogger {
pub(crate) struct DefaultInstallLogger; pub(crate) struct DefaultInstallLogger;
impl InstallLogger for DefaultInstallLogger { impl InstallLogger for DefaultInstallLogger {
fn on_audit( fn on_check(
&self, &self,
count: usize, count: usize,
start: std::time::Instant, start: std::time::Instant,
@@ -73,7 +73,7 @@ impl InstallLogger for DefaultInstallLogger {
writeln!( writeln!(
printer.stderr(), printer.stderr(),
"{}", "{}",
format!("Audited in {}", elapsed(start.elapsed())).dimmed() format!("Checked in {}", elapsed(start.elapsed())).dimmed()
)?; )?;
} else { } else {
let s = if count == 1 { "" } else { "s" }; let s = if count == 1 { "" } else { "s" };
@@ -81,7 +81,7 @@ impl InstallLogger for DefaultInstallLogger {
printer.stderr(), printer.stderr(),
"{}", "{}",
format!( format!(
"Audited {} {}", "Checked {} {}",
format!("{count} package{s}").bold(), format!("{count} package{s}").bold(),
format!("in {}", elapsed(start.elapsed())).dimmed() format!("in {}", elapsed(start.elapsed())).dimmed()
) )
@@ -248,7 +248,7 @@ impl InstallLogger for DefaultInstallLogger {
pub(crate) struct SummaryInstallLogger; pub(crate) struct SummaryInstallLogger;
impl InstallLogger for SummaryInstallLogger { impl InstallLogger for SummaryInstallLogger {
fn on_audit( fn on_check(
&self, &self,
_count: usize, _count: usize,
_start: std::time::Instant, _start: std::time::Instant,
@@ -313,7 +313,7 @@ impl UpgradeInstallLogger {
} }
impl InstallLogger for UpgradeInstallLogger { impl InstallLogger for UpgradeInstallLogger {
fn on_audit( fn on_check(
&self, &self,
_count: usize, _count: usize,
_start: std::time::Instant, _start: std::time::Instant,
+2 -2
View File
@@ -628,7 +628,7 @@ pub(crate) async fn install(
&& extraneous.is_empty() && extraneous.is_empty()
&& !compile && !compile
{ {
logger.on_audit(resolution.len(), start, printer, dry_run)?; logger.on_check(resolution.len(), start, printer, dry_run)?;
return Ok(Changelog::default()); return Ok(Changelog::default());
} }
@@ -1000,7 +1000,7 @@ fn report_dry_run(
// Nothing to do. // Nothing to do.
if remote.is_empty() && cached.is_empty() && reinstalls.is_empty() && extraneous.is_empty() { if remote.is_empty() && cached.is_empty() && reinstalls.is_empty() && extraneous.is_empty() {
logger.on_audit(resolution.len(), start, printer, dry_run)?; logger.on_check(resolution.len(), start, printer, dry_run)?;
return Ok(Changelog::default()); return Ok(Changelog::default());
} }
+57 -57
View File
@@ -136,7 +136,7 @@ fn add_registry() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -199,7 +199,7 @@ fn add_git() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -299,7 +299,7 @@ fn add_git() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -395,7 +395,7 @@ fn add_git_private_source() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -489,7 +489,7 @@ fn add_git_private_raw() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -607,7 +607,7 @@ fn add_git_error() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// Provide a tag without a Git source. // Provide a tag without a Git source.
@@ -886,7 +886,7 @@ fn add_git_lfs() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -1036,7 +1036,7 @@ fn add_git_raw() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -1295,7 +1295,7 @@ fn add_unnamed() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -1421,7 +1421,7 @@ fn add_remove_dev() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
// This should fail without --dev. // This should fail without --dev.
@@ -1502,7 +1502,7 @@ fn add_remove_dev() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -1653,7 +1653,7 @@ fn add_remove_optional() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -1707,7 +1707,7 @@ fn add_remove_optional() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -1958,7 +1958,7 @@ fn add_remove_workspace() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
// Remove the dependency. // Remove the dependency.
@@ -2036,7 +2036,7 @@ fn add_remove_workspace() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -2306,7 +2306,7 @@ fn remove_both_dev() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -2398,7 +2398,7 @@ fn remove_both_dev_group() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -2626,7 +2626,7 @@ fn add_workspace_editable() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -2752,7 +2752,7 @@ fn add_workspace_path() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -2880,7 +2880,7 @@ fn add_path_implicit_workspace() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -2996,7 +2996,7 @@ fn add_path_no_workspace() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -3153,7 +3153,7 @@ fn update() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -3371,7 +3371,7 @@ fn update() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 7 packages in [TIME] Checked 7 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -3422,7 +3422,7 @@ fn add_update_marker() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 8 packages in [TIME] Resolved 8 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -3453,7 +3453,7 @@ fn add_update_marker() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 10 packages in [TIME] Resolved 10 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -3484,7 +3484,7 @@ fn add_update_marker() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 10 packages in [TIME] Resolved 10 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -3516,7 +3516,7 @@ fn add_update_marker() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 10 packages in [TIME] Resolved 10 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -3916,7 +3916,7 @@ fn remove_non_normalized_source() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -4057,7 +4057,7 @@ fn add_inexact() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Install from the lockfile, performing an exact sync. // Install from the lockfile, performing an exact sync.
@@ -4170,7 +4170,7 @@ fn remove_registry() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -5158,7 +5158,7 @@ fn add_virtual_dependency_group() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`. warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`.
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -5213,7 +5213,7 @@ fn add_empty_requirements_group() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: Requirements file `requirements.txt` does not contain any dependencies warning: Requirements file `requirements.txt` does not contain any dependencies
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -5266,7 +5266,7 @@ fn add_empty_requirements_optional() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: Requirements file `requirements.txt` does not contain any dependencies warning: Requirements file `requirements.txt` does not contain any dependencies
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -5487,7 +5487,7 @@ fn add_repeat() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 4 packages in [TIME] Resolved 4 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -5581,7 +5581,7 @@ fn add_requirements_file() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved [N] packages in [TIME] Resolved [N] packages in [TIME]
Audited [N] packages in [TIME] Checked [N] packages in [TIME]
"); ");
// Passing a `setup.py` should fail. // Passing a `setup.py` should fail.
@@ -5860,7 +5860,7 @@ fn add_requirements_file_with_marker_flag() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let edited_pyproject_toml = context.read("pyproject.toml"); let edited_pyproject_toml = context.read("pyproject.toml");
@@ -6246,7 +6246,7 @@ fn add_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 8 packages in [TIME] Resolved 8 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -6276,7 +6276,7 @@ fn add_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 8 packages in [TIME] Resolved 8 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -6431,7 +6431,7 @@ fn add_group_normalize() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 4 packages in [TIME] Resolved 4 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -6683,7 +6683,7 @@ fn remove_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -7580,7 +7580,7 @@ fn remove_repeated() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -10052,7 +10052,7 @@ fn add_index() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 4 packages in [TIME] Resolved 4 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
let pyproject_toml = fs_err::read_to_string(context.temp_dir.join("pyproject.toml"))?; let pyproject_toml = fs_err::read_to_string(context.temp_dir.join("pyproject.toml"))?;
@@ -10300,7 +10300,7 @@ fn add_index() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
let pyproject_toml = fs_err::read_to_string(context.temp_dir.join("pyproject.toml"))?; let pyproject_toml = fs_err::read_to_string(context.temp_dir.join("pyproject.toml"))?;
@@ -11293,7 +11293,7 @@ fn add_group_comment() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -11474,7 +11474,7 @@ fn add_self() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -11751,7 +11751,7 @@ fn add_direct_url_subdirectory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -11881,7 +11881,7 @@ fn add_direct_url_subdirectory_raw() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -12319,7 +12319,7 @@ fn remove_requirement() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -12367,7 +12367,7 @@ fn remove_all_with_comments() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -12495,7 +12495,7 @@ fn multiple_index_cli() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -12606,7 +12606,7 @@ fn repeated_index_cli_environment_variable() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -12712,7 +12712,7 @@ fn repeated_index_cli_environment_variable_newline() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -12822,7 +12822,7 @@ fn repeated_index_cli() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -12932,7 +12932,7 @@ fn repeated_index_cli_reversed() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -14093,7 +14093,7 @@ fn add_optional_normalize() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 4 packages in [TIME] Resolved 4 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -14209,7 +14209,7 @@ fn add_bounds() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 4 packages in [TIME] Resolved 4 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
@@ -14268,7 +14268,7 @@ fn add_bounds() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 4 packages in [TIME] Resolved 4 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
let pyproject_toml = context.read("pyproject.toml"); let pyproject_toml = context.read("pyproject.toml");
+1 -1
View File
@@ -175,7 +175,7 @@ fn init_application() -> Result<()> {
Using CPython 3.12.[X] interpreter at: [PYTHON-3.12] Using CPython 3.12.[X] interpreter at: [PYTHON-3.12]
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
+9 -9
View File
@@ -139,7 +139,7 @@ fn lock_wheel_registry() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -233,7 +233,7 @@ fn lock_sdist_registry() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -597,7 +597,7 @@ fn lock_sdist_git_subdirectory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -940,7 +940,7 @@ fn lock_sdist_git_short_rev() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -1094,7 +1094,7 @@ fn lock_wheel_url() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -1235,7 +1235,7 @@ fn lock_sdist_url() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -1372,7 +1372,7 @@ fn lock_sdist_url_subdirectory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -1506,7 +1506,7 @@ fn lock_sdist_url_subdirectory_pep508() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -3848,7 +3848,7 @@ fn lock_conflicting_workspace_members_depends_transitive_extra() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// Install just the child package // Install just the child package
+15 -15
View File
@@ -159,7 +159,7 @@ fn extra_basic() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// Another install, but with one of the extras enabled. // Another install, but with one of the extras enabled.
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--extra=extra1"), @" uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--extra=extra1"), @"
@@ -403,7 +403,7 @@ fn extra_multiple_not_conflicting1() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// extra1/extra2 conflict! // extra1/extra2 conflict!
uv_snapshot!( uv_snapshot!(
@@ -439,7 +439,7 @@ fn extra_multiple_not_conflicting1() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// ... and neither does extra2/project3. // ... and neither does extra2/project3.
uv_snapshot!( uv_snapshot!(
@@ -451,7 +451,7 @@ fn extra_multiple_not_conflicting1() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// And similarly, with project 4. // And similarly, with project 4.
uv_snapshot!( uv_snapshot!(
@@ -463,7 +463,7 @@ fn extra_multiple_not_conflicting1() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// ... and neither does extra2/project3. // ... and neither does extra2/project3.
uv_snapshot!( uv_snapshot!(
@@ -475,7 +475,7 @@ fn extra_multiple_not_conflicting1() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -1300,7 +1300,7 @@ fn extra_unconditional_in_optional() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// This should install `sortedcontainers==2.3.0`. // This should install `sortedcontainers==2.3.0`.
@@ -2039,7 +2039,7 @@ fn group_basic() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// Another install, but with one of the groups enabled. // Another install, but with one of the groups enabled.
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--group=group1"), @" uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--group=group1"), @"
@@ -2206,7 +2206,7 @@ fn group_default() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Another install, but with the other group enabled. This should error, since `group1` is // Another install, but with the other group enabled. This should error, since `group1` is
@@ -2409,7 +2409,7 @@ fn mixed() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
// Another install, but with the group enabled. // Another install, but with the group enabled.
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--group=group1"), @" uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--group=group1"), @"
@@ -4274,7 +4274,7 @@ fn shared_dependency_extra() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -4448,7 +4448,7 @@ fn shared_dependency_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -4629,7 +4629,7 @@ fn shared_dependency_mixed() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -4905,7 +4905,7 @@ fn jinja_no_conflict_markers1() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let lock = fs_err::read_to_string(context.temp_dir.join("uv.lock")).unwrap(); let lock = fs_err::read_to_string(context.temp_dir.join("uv.lock")).unwrap();
@@ -5067,7 +5067,7 @@ fn jinja_no_conflict_markers2() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let lock = fs_err::read_to_string(context.temp_dir.join("uv.lock")).unwrap(); let lock = fs_err::read_to_string(context.temp_dir.join("uv.lock")).unwrap();
+46 -46
View File
@@ -61,7 +61,7 @@ fn empty_requirements_txt() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: Requirements file `requirements.txt` does not contain any dependencies warning: Requirements file `requirements.txt` does not contain any dependencies
Audited in [TIME] Checked in [TIME]
" "
); );
@@ -237,7 +237,7 @@ fn invalid_pyproject_toml_option_unknown_field() -> Result<()> {
unknown field `unknown`, expected one of `required-version`, `native-tls`, [...] unknown field `unknown`, expected one of `required-version`, `native-tls`, [...]
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"# "#
); );
@@ -996,7 +996,7 @@ fn respect_installed_and_reinstall() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -1567,7 +1567,7 @@ fn install_editable_and_registry() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -1741,7 +1741,7 @@ fn install_editable_pep_508_requirements_txt() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -1759,7 +1759,7 @@ fn install_editable_pep_508_requirements_txt() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -1777,7 +1777,7 @@ fn install_editable_pep_508_requirements_txt() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -2367,7 +2367,7 @@ fn install_git_public_https_exact_commit() {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
} }
@@ -2696,7 +2696,7 @@ fn reinstall_no_binary() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -3525,7 +3525,7 @@ fn install_no_downgrade() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
" "
); );
@@ -3611,7 +3611,7 @@ fn install_upgrade() {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
" "
); );
@@ -3626,7 +3626,7 @@ fn install_upgrade() {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 6 packages in [TIME] Checked 6 packages in [TIME]
" "
); );
@@ -3997,7 +3997,7 @@ fn install_constraints_with_markers() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -4506,7 +4506,7 @@ requires-python = ">=3.8"
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -4598,7 +4598,7 @@ dependencies = {file = ["dependencies.txt"]}
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -4654,7 +4654,7 @@ requires-python = ">=3.8"
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -4748,7 +4748,7 @@ fn invalidate_path_on_cache_key() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -4814,7 +4814,7 @@ fn invalidate_path_on_cache_key() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -4943,7 +4943,7 @@ fn invalidate_path_on_commit() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -5026,7 +5026,7 @@ fn invalidate_path_on_env_var() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -5078,7 +5078,7 @@ fn path_name_version_change() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -5693,7 +5693,7 @@ fn dry_run_install_already_installed() -> std::result::Result<(), Box<dyn std::e
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
Would make no changes Would make no changes
" "
); );
@@ -6287,7 +6287,7 @@ fn reinstall_no_index() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -6655,7 +6655,7 @@ fn already_installed_local_version_of_remote_package() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -6761,7 +6761,7 @@ fn already_installed_local_version_of_remote_package() {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -6891,7 +6891,7 @@ fn already_installed_remote_url() {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Request installation again with a different URL, but the same _canonical_ URL and the same // Request installation again with a different URL, but the same _canonical_ URL and the same
@@ -6904,7 +6904,7 @@ fn already_installed_remote_url() {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Request installation again with just the name // Request installation again with just the name
@@ -6916,7 +6916,7 @@ fn already_installed_remote_url() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Request reinstallation // Request reinstallation
@@ -6947,7 +6947,7 @@ fn already_installed_remote_url() {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Request reinstallation with the full URL // Request reinstallation with the full URL
@@ -8212,7 +8212,7 @@ fn tool_uv_sources() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 9 packages in [TIME] Resolved 9 packages in [TIME]
Audited 9 packages in [TIME] Checked 9 packages in [TIME]
" "
); );
Ok(()) Ok(())
@@ -11219,7 +11219,7 @@ fn change_layout_src() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11254,7 +11254,7 @@ fn change_layout_src() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11316,7 +11316,7 @@ fn change_layout_custom_directory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11345,7 +11345,7 @@ fn change_layout_custom_directory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11374,7 +11374,7 @@ fn change_layout_custom_directory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11427,7 +11427,7 @@ fn pep_751_install_registry_wheel() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11480,7 +11480,7 @@ fn pep_751_install_registry_sdist() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11561,7 +11561,7 @@ fn pep_751_install_directory() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
" "
); );
@@ -11615,7 +11615,7 @@ fn pep_751_install_git() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11670,7 +11670,7 @@ fn pep_751_install_url_wheel() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
" "
); );
@@ -11725,7 +11725,7 @@ fn pep_751_install_url_sdist() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
" "
); );
@@ -11808,7 +11808,7 @@ fn pep_751_install_path_wheel() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -11871,7 +11871,7 @@ fn pep_751_install_path_sdist() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -12639,7 +12639,7 @@ fn install_python_preference() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// This also works with `VIRTUAL_ENV` unset // This also works with `VIRTUAL_ENV` unset
@@ -12650,7 +12650,7 @@ fn install_python_preference() {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
} }
@@ -13814,7 +13814,7 @@ fn pip_install_no_sources_editable_to_registry_switch() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
+11 -11
View File
@@ -429,7 +429,7 @@ fn noop() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -470,7 +470,7 @@ fn pip_sync_empty() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: Requirements file `requirements.txt` does not contain any dependencies warning: Requirements file `requirements.txt` does not contain any dependencies
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
" "
); );
@@ -915,7 +915,7 @@ fn install_url_then_install_url() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -952,7 +952,7 @@ fn install_url_then_install_version() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -1277,7 +1277,7 @@ fn install_local_wheel() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -1296,7 +1296,7 @@ fn install_local_wheel() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -2392,7 +2392,7 @@ fn sync_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
" "
); );
@@ -2457,7 +2457,7 @@ fn sync_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
" "
); );
@@ -2590,7 +2590,7 @@ fn sync_editable_and_registry() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -3328,7 +3328,7 @@ requires-python = ">=3.8"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
" "
); );
@@ -5887,7 +5887,7 @@ fn pep_751() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
" "
); );
+2 -2
View File
@@ -1048,7 +1048,7 @@ fn python_find_script() {
----- stderr ----- ----- stderr -----
Creating script environment at: [CACHE_DIR]/environments-v2/foo-[HASH] Creating script environment at: [CACHE_DIR]/environments-v2/foo-[HASH]
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
uv_snapshot!(context.filters(), context.python_find().arg("--script").arg("foo.py"), @" uv_snapshot!(context.filters(), context.python_find().arg("--script").arg("foo.py"), @"
@@ -1139,7 +1139,7 @@ fn python_find_script_no_such_version() {
----- stderr ----- ----- stderr -----
Creating script environment at: [CACHE_DIR]/environments-v2/foo-[HASH] Creating script environment at: [CACHE_DIR]/environments-v2/foo-[HASH]
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
script script
+1 -1
View File
@@ -250,7 +250,7 @@ fn find_uv_bin_in_ephemeral_environment() -> anyhow::Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Prepared 1 package in [TIME] Prepared 1 package in [TIME]
Installed 1 package in [TIME] Installed 1 package in [TIME]
+46 -46
View File
@@ -89,7 +89,7 @@ fn run_with_python_version() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
// This time, we target Python 3.11 instead. // This time, we target Python 3.11 instead.
@@ -200,7 +200,7 @@ fn run_args() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -390,7 +390,7 @@ fn run_pep723_script() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
// If the script contains a PEP 723 tag, it can omit the dependencies field. // If the script contains a PEP 723 tag, it can omit the dependencies field.
@@ -1037,7 +1037,7 @@ fn run_pep723_script_lock() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// With a lockfile, running with `--locked` should not warn. // With a lockfile, running with `--locked` should not warn.
@@ -1049,7 +1049,7 @@ fn run_pep723_script_lock() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Modify the metadata. // Modify the metadata.
@@ -1085,7 +1085,7 @@ fn run_pep723_script_lock() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
Traceback (most recent call last): Traceback (most recent call last):
File "[TEMP_DIR]/main.py", line 8, in <module> File "[TEMP_DIR]/main.py", line 8, in <module>
import anyio import anyio
@@ -1325,7 +1325,7 @@ fn run_with() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
// Unless the user requests a different version. // Unless the user requests a different version.
@@ -1337,7 +1337,7 @@ fn run_with() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Prepared 1 package in [TIME] Prepared 1 package in [TIME]
Installed 1 package in [TIME] Installed 1 package in [TIME]
@@ -1355,7 +1355,7 @@ fn run_with() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Prepared 2 packages in [TIME] Prepared 2 packages in [TIME]
Installed 3 packages in [TIME] Installed 3 packages in [TIME]
@@ -1388,7 +1388,7 @@ fn run_with() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
× No solution found when resolving `--with` dependencies: × No solution found when resolving `--with` dependencies:
╰─▶ Because there are no versions of add and you require add, we can conclude that your requirements are unsatisfiable. ╰─▶ Because there are no versions of add and you require add, we can conclude that your requirements are unsatisfiable.
"); ");
@@ -1671,7 +1671,7 @@ fn run_with_overlay_interpreter() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
"); ");
@@ -1758,7 +1758,7 @@ fn run_with_overlay_interpreter() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
"); ");
@@ -1772,7 +1772,7 @@ fn run_with_overlay_interpreter() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
"); ");
@@ -1898,7 +1898,7 @@ fn run_with_build_constraints() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Prepared 1 package in [TIME] Prepared 1 package in [TIME]
Installed 1 package in [TIME] Installed 1 package in [TIME]
@@ -2015,7 +2015,7 @@ fn run_in_workspace() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 8 packages in [TIME] Resolved 8 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Traceback (most recent call last): Traceback (most recent call last):
File "[TEMP_DIR]/main.py", line 1, in <module> File "[TEMP_DIR]/main.py", line 1, in <module>
import iniconfig import iniconfig
@@ -2048,7 +2048,7 @@ fn run_in_workspace() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 8 packages in [TIME] Resolved 8 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Traceback (most recent call last): Traceback (most recent call last):
File "[TEMP_DIR]/main.py", line 1, in <module> File "[TEMP_DIR]/main.py", line 1, in <module>
import typing_extensions import typing_extensions
@@ -2142,7 +2142,7 @@ fn run_with_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Prepared 1 package in [TIME] Prepared 1 package in [TIME]
Installed 1 package in [TIME] Installed 1 package in [TIME]
@@ -2157,7 +2157,7 @@ fn run_with_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
// Similarly, an already editable requirement does not require a layer // Similarly, an already editable requirement does not require a layer
@@ -2200,7 +2200,7 @@ fn run_with_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
// If invalid, we should reference `--with-editable`. // If invalid, we should reference `--with-editable`.
@@ -2211,7 +2211,7 @@ fn run_with_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
× Failed to resolve `--with` requirement × Failed to resolve `--with` requirement
╰─▶ Distribution not found at: file://[TEMP_DIR]/foo ╰─▶ Distribution not found at: file://[TEMP_DIR]/foo
"); ");
@@ -2320,7 +2320,7 @@ fn run_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.run().arg("--all-groups").arg("main.py"), @" uv_snapshot!(context.filters(), context.run().arg("--all-groups").arg("main.py"), @"
@@ -2333,7 +2333,7 @@ fn run_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.run().arg("--all-groups").arg("--no-group").arg("bar").arg("main.py"), @" uv_snapshot!(context.filters(), context.run().arg("--all-groups").arg("--no-group").arg("bar").arg("main.py"), @"
@@ -2346,7 +2346,7 @@ fn run_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.run().arg("--group").arg("foo").arg("--no-project").arg("main.py"), @" uv_snapshot!(context.filters(), context.run().arg("--group").arg("foo").arg("--no-project").arg("main.py"), @"
@@ -2839,7 +2839,7 @@ fn run_empty_requirements_txt() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
warning: Requirements file `requirements.txt` does not contain any dependencies warning: Requirements file `requirements.txt` does not contain any dependencies
"); ");
@@ -2909,7 +2909,7 @@ fn run_requirements_txt() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
// Unless the user requests a different version. // Unless the user requests a different version.
@@ -2922,7 +2922,7 @@ fn run_requirements_txt() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Prepared 1 package in [TIME] Prepared 1 package in [TIME]
Installed 1 package in [TIME] Installed 1 package in [TIME]
@@ -2944,7 +2944,7 @@ fn run_requirements_txt() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Installed 2 packages in [TIME] Installed 2 packages in [TIME]
+ iniconfig==2.0.0 + iniconfig==2.0.0
@@ -2965,7 +2965,7 @@ fn run_requirements_txt() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
"); ");
@@ -3710,7 +3710,7 @@ fn virtual_empty() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`. warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`.
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// `run --no-project` should also work fine // `run --no-project` should also work fine
@@ -4157,7 +4157,7 @@ fn run_script_without_build_system() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
error: Failed to spawn: `entry` error: Failed to spawn: `entry`
Caused by: No such file or directory (os error 2) Caused by: No such file or directory (os error 2)
"); ");
@@ -4221,7 +4221,7 @@ fn run_script_module_conflict() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Even if the working directory is `src` // Even if the working directory is `src`
@@ -4233,7 +4233,7 @@ fn run_script_module_conflict() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Unless the user opts-in to module running with `-m` // Unless the user opts-in to module running with `-m`
@@ -4245,7 +4245,7 @@ fn run_script_module_conflict() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -4500,7 +4500,7 @@ fn run_linked_environment_path() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 8 packages in [TIME] Resolved 8 packages in [TIME]
Audited 6 packages in [TIME] Checked 6 packages in [TIME]
"); ");
// And, similarly, the entrypoint should use `target` // And, similarly, the entrypoint should use `target`
@@ -4575,7 +4575,7 @@ fn run_active_project_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
context context
@@ -5289,7 +5289,7 @@ fn run_default_groups() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
// Using `--only-group` should exclude the defaults // Using `--only-group` should exclude the defaults
@@ -5388,7 +5388,7 @@ fn run_default_groups() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -5504,7 +5504,7 @@ fn run_groups_requires_python() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
// Explicitly requesting an in-range python can downgrade // Explicitly requesting an in-range python can downgrade
@@ -5712,7 +5712,7 @@ fn run_repeated() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
"); ");
@@ -5799,7 +5799,7 @@ fn run_without_overlay() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
"); ");
@@ -5964,7 +5964,7 @@ fn run_windows_legacy_scripts() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"###); "###);
// Test with explicit .cmd extension // Test with explicit .cmd extension
@@ -6005,7 +6005,7 @@ fn run_windows_legacy_scripts() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"###); "###);
// Test with explicit .ps1 extension // Test with explicit .ps1 extension
@@ -6046,7 +6046,7 @@ fn run_windows_legacy_scripts() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"###); "###);
// Test without explicit extension (.ps1 should be used) as there's no .exe available. // Test without explicit extension (.ps1 should be used) as there's no .exe available.
@@ -6087,7 +6087,7 @@ fn run_windows_legacy_scripts() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"###); "###);
Ok(()) Ok(())
@@ -6395,7 +6395,7 @@ fn isolate_child_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
Traceback (most recent call last): Traceback (most recent call last):
File "<string>", line 1, in <module> File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'iniconfig' ModuleNotFoundError: No module named 'iniconfig'
@@ -6409,7 +6409,7 @@ fn isolate_child_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Prepared 1 package in [TIME] Prepared 1 package in [TIME]
Installed 1 package in [TIME] Installed 1 package in [TIME]
+62 -62
View File
@@ -180,7 +180,7 @@ fn empty() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`. warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`.
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
assert!(context.temp_dir.child("uv.lock").exists()); assert!(context.temp_dir.child("uv.lock").exists());
@@ -194,7 +194,7 @@ fn empty() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`. warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`.
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -488,7 +488,7 @@ fn sync_json() -> Result<()> {
} }
----- stderr ----- ----- stderr -----
Audited 1 package in [TIME] Checked 1 package in [TIME]
"#); "#);
uv_snapshot!(context.filters(), context.sync() uv_snapshot!(context.filters(), context.sync()
@@ -529,7 +529,7 @@ fn sync_json() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"#); "#);
// Invalidate the lockfile by changing the requirements. // Invalidate the lockfile by changing the requirements.
@@ -1104,7 +1104,7 @@ fn check() -> Result<()> {
Would use project environment at: .venv Would use project environment at: .venv
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Found up-to-date lockfile at: uv.lock Found up-to-date lockfile at: uv.lock
Audited 1 package in [TIME] Checked 1 package in [TIME]
Would make no changes Would make no changes
"); ");
Ok(()) Ok(())
@@ -1428,7 +1428,7 @@ fn sync_non_project_frozen_modification() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -2961,7 +2961,7 @@ fn sync_relative_wheel() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -3177,7 +3177,7 @@ fn sync_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 10 packages in [TIME] Resolved 10 packages in [TIME]
Audited 9 packages in [TIME] Checked 9 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--all-groups").arg("--no-group").arg("bar"), @" uv_snapshot!(context.filters(), context.sync().arg("--all-groups").arg("--no-group").arg("bar"), @"
@@ -3247,7 +3247,7 @@ fn sync_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 10 packages in [TIME] Resolved 10 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--all-groups"), @" uv_snapshot!(context.filters(), context.sync().arg("--all-groups"), @"
@@ -3454,7 +3454,7 @@ fn sync_include_group() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 6 packages in [TIME] Resolved 6 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -3591,7 +3591,7 @@ fn sync_exclude_group_with_environment_variable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 7 packages in [TIME] Resolved 7 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
// Test that CLI flag takes precedence over environment variable // Test that CLI flag takes precedence over environment variable
@@ -3751,7 +3751,7 @@ fn sync_non_existent_group() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 6 packages in [TIME] Checked 6 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--group").arg("baz"), @" uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--group").arg("baz"), @"
@@ -5103,7 +5103,7 @@ fn sync_ignore_extras_check_when_no_provides_extras() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -5343,7 +5343,7 @@ fn sync_non_existent_extra_non_project_workspace() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
// Syncing from an unrelated child should fail. // Syncing from an unrelated child should fail.
@@ -6055,7 +6055,7 @@ fn virtual_empty() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`. warning: No `requires-python` value found in the workspace. Defaulting to `>=3.12`.
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -6737,7 +6737,7 @@ fn sync_active_project_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Setting both the `VIRTUAL_ENV` and `UV_PROJECT_ENVIRONMENT` is fine if they agree // Setting both the `VIRTUAL_ENV` and `UV_PROJECT_ENVIRONMENT` is fine if they agree
@@ -6751,7 +6751,7 @@ fn sync_active_project_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// If they disagree, we use `VIRTUAL_ENV` because of `--active` // If they disagree, we use `VIRTUAL_ENV` because of `--active`
@@ -6765,7 +6765,7 @@ fn sync_active_project_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
context context
@@ -6862,7 +6862,7 @@ fn sync_active_script_environment() -> Result<()> {
----- stderr ----- ----- stderr -----
Using script environment at: foo Using script environment at: foo
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
// Requesting another Python version will invalidate the environment // Requesting another Python version will invalidate the environment
@@ -7041,7 +7041,7 @@ fn sync_active_script_environment_json() -> Result<()> {
----- stderr ----- ----- stderr -----
Using script environment at: foo Using script environment at: foo
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
// Requesting another Python version will invalidate the environment // Requesting another Python version will invalidate the environment
@@ -7222,7 +7222,7 @@ fn sync_workspace_custom_environment_path() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
context context
@@ -7312,7 +7312,7 @@ fn sync_virtual_env_warning() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Or, if it's a link that resolves to the same path // Or, if it's a link that resolves to the same path
@@ -7330,7 +7330,7 @@ fn sync_virtual_env_warning() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
} }
@@ -7343,7 +7343,7 @@ fn sync_virtual_env_warning() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: `VIRTUAL_ENV=foo` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead warning: `VIRTUAL_ENV=foo` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Including absolute paths // Including absolute paths
@@ -7355,7 +7355,7 @@ fn sync_virtual_env_warning() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: `VIRTUAL_ENV=foo` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead warning: `VIRTUAL_ENV=foo` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// We should not warn if the project environment has been customized and matches // We should not warn if the project environment has been customized and matches
@@ -7400,7 +7400,7 @@ fn sync_virtual_env_warning() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: `VIRTUAL_ENV=foo` does not match the project environment path `[TEMP_DIR]/foo` and will be ignored; use `--active` to target the active environment instead warning: `VIRTUAL_ENV=foo` does not match the project environment path `[TEMP_DIR]/foo` and will be ignored; use `--active` to target the active environment instead
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// But, a matching absolute path shouldn't warn // But, a matching absolute path shouldn't warn
@@ -7411,7 +7411,7 @@ fn sync_virtual_env_warning() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -8266,7 +8266,7 @@ fn sync_no_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
"); ");
// Remove the project. // Remove the project.
@@ -8320,7 +8320,7 @@ fn sync_scripts_without_build_system() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
warning: Skipping installation of entry points (`project.scripts`) for package `foo` because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system` warning: Skipping installation of entry points (`project.scripts`) for package `foo` because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system`
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -8369,7 +8369,7 @@ fn sync_scripts_project_not_packaged() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
warning: Skipping installation of entry points (`project.scripts`) for package `foo` because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system` warning: Skipping installation of entry points (`project.scripts`) for package `foo` because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system`
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -8420,7 +8420,7 @@ fn sync_scripts_workspace_member_not_packaged() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
warning: Skipping installation of entry points (`project.scripts`) for package `member` because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system` warning: Skipping installation of entry points (`project.scripts`) for package `member` because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system`
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -8469,7 +8469,7 @@ fn sync_scripts_workspace_member_not_packaged_not_synced() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -8927,7 +8927,7 @@ fn sync_partial_environment_delete() -> Result<()> {
Using CPython 3.13.[X] interpreter at: [PYTHON-3.13] Using CPython 3.13.[X] interpreter at: [PYTHON-3.13]
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// Create a directory that's unreadable, erroring on trying to delete its children. // Create a directory that's unreadable, erroring on trying to delete its children.
@@ -8972,7 +8972,7 @@ fn sync_partial_environment_delete() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -11078,7 +11078,7 @@ fn sync_dry_run() -> Result<()> {
Would use project environment at: .venv Would use project environment at: .venv
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Found up-to-date lockfile at: uv.lock Found up-to-date lockfile at: uv.lock
Audited 1 package in [TIME] Checked 1 package in [TIME]
Would make no changes Would make no changes
"); ");
@@ -11729,7 +11729,7 @@ fn multiple_group_conflicts() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--group").arg("baz"), @" uv_snapshot!(context.filters(), context.sync().arg("--group").arg("baz"), @"
@@ -11751,7 +11751,7 @@ fn multiple_group_conflicts() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--group").arg("bar").arg("--group").arg("baz"), @" uv_snapshot!(context.filters(), context.sync().arg("--group").arg("bar").arg("--group").arg("baz"), @"
@@ -11851,7 +11851,7 @@ fn transitive_group_conflicts_shallow() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--group").arg("dev").arg("--group").arg("test"), @" uv_snapshot!(context.filters(), context.sync().arg("--group").arg("dev").arg("--group").arg("test"), @"
@@ -11861,7 +11861,7 @@ fn transitive_group_conflicts_shallow() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--group").arg("test").arg("--group").arg("magic"), @" uv_snapshot!(context.filters(), context.sync().arg("--group").arg("test").arg("--group").arg("magic"), @"
@@ -11948,7 +11948,7 @@ fn transitive_group_conflicts_deep() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 7 packages in [TIME] Resolved 7 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--group").arg("dev").arg("--group").arg("test"), @" uv_snapshot!(context.filters(), context.sync().arg("--group").arg("dev").arg("--group").arg("test"), @"
@@ -11958,7 +11958,7 @@ fn transitive_group_conflicts_deep() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 7 packages in [TIME] Resolved 7 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--group").arg("dev").arg("--group").arg("magic"), @" uv_snapshot!(context.filters(), context.sync().arg("--group").arg("dev").arg("--group").arg("magic"), @"
@@ -12038,7 +12038,7 @@ fn transitive_group_conflicts_siblings() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
uv_snapshot!(context.filters(), context.sync().arg("--no-dev").arg("--group").arg("dev2"), @" uv_snapshot!(context.filters(), context.sync().arg("--no-dev").arg("--group").arg("dev2"), @"
@@ -12436,7 +12436,7 @@ fn sync_build_constraints() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -12593,7 +12593,7 @@ fn sync_when_virtual_environment_incompatible_with_interpreter() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
insta::with_settings!({ insta::with_settings!({
@@ -12632,7 +12632,7 @@ fn sync_when_virtual_environment_incompatible_with_interpreter() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
insta::with_settings!({ insta::with_settings!({
@@ -12744,7 +12744,7 @@ fn sync_upload_time() -> Result<()> {
----- stdout ----- ----- stdout -----
----- stderr ----- ----- stderr -----
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -12833,7 +12833,7 @@ fn repeated_dev_member_all_packages() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited 3 packages in [TIME] Checked 3 packages in [TIME]
"); ");
Ok(()) Ok(())
@@ -13157,7 +13157,7 @@ fn read_only() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -13269,7 +13269,7 @@ fn conflicting_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let lock = context.read("uv.lock"); let lock = context.read("uv.lock");
@@ -13435,7 +13435,7 @@ fn undeclared_editable() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let lock = context.read("uv.lock"); let lock = context.read("uv.lock");
@@ -13561,7 +13561,7 @@ fn sync_python_preference() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// We should invalidate the environment and switch to 3.11 // We should invalidate the environment and switch to 3.11
@@ -13575,7 +13575,7 @@ fn sync_python_preference() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// We will use the environment if it exists // We will use the environment if it exists
@@ -13586,7 +13586,7 @@ fn sync_python_preference() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// Unless the user requests a Python preference that is incompatible // Unless the user requests a Python preference that is incompatible
@@ -13600,7 +13600,7 @@ fn sync_python_preference() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// If a interpreter cannot be found, we'll fail // If a interpreter cannot be found, we'll fail
@@ -13640,7 +13640,7 @@ fn sync_python_preference() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// But it can be overridden via the CLI // But it can be overridden via the CLI
@@ -13654,7 +13654,7 @@ fn sync_python_preference() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// `uv run` will invalidate the environment too // `uv run` will invalidate the environment too
@@ -13669,7 +13669,7 @@ fn sync_python_preference() -> Result<()> {
Removed virtual environment at: .venv Removed virtual environment at: .venv
Creating virtual environment at: .venv Creating virtual environment at: .venv
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -14783,7 +14783,7 @@ fn match_runtime_optional() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 3 packages in [TIME] Resolved 3 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
@@ -14848,7 +14848,7 @@ fn sync_extra_build_dependencies_cache() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Add a build dependency. // Add a build dependency.
@@ -14888,7 +14888,7 @@ fn sync_extra_build_dependencies_cache() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
// Adding a version specifier is fine if match-runtime is false // Adding a version specifier is fine if match-runtime is false
@@ -14982,7 +14982,7 @@ fn sync_extra_build_dependencies_cache() -> Result<()> {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
"); ");
Ok(()) Ok(())
@@ -15885,7 +15885,7 @@ fn sync_reinstalls_on_version_change() -> Result<()> {
"); ");
// Sync should reinstall child with the new version. Before the fix for #17370, // Sync should reinstall child with the new version. Before the fix for #17370,
// this would incorrectly say "Audited 2 packages" and not reinstall the child package. // this would incorrectly say "Checked 2 packages" and not reinstall the child package.
uv_snapshot!(context.filters(), context.sync(), @" uv_snapshot!(context.filters(), context.sync(), @"
success: true success: true
exit_code: 0 exit_code: 0
+4 -4
View File
@@ -278,7 +278,7 @@ fn tool_install_python_from_global_version_file() {
----- stderr ----- ----- stderr -----
Resolved [N] packages in [TIME] Resolved [N] packages in [TIME]
Audited [N] packages in [TIME] Checked [N] packages in [TIME]
Installed 1 executable: flask Installed 1 executable: flask
"); ");
@@ -896,7 +896,7 @@ fn tool_install_editable() {
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited 1 package in [TIME] Checked 1 package in [TIME]
Installed 1 executable: black Installed 1 executable: black
"); ");
@@ -2966,7 +2966,7 @@ fn tool_install_upgrade() {
----- stderr ----- ----- stderr -----
Resolved [N] packages in [TIME] Resolved [N] packages in [TIME]
Audited [N] packages in [TIME] Checked [N] packages in [TIME]
Installed 2 executables: black, blackd Installed 2 executables: black, blackd
"); ");
@@ -3957,7 +3957,7 @@ fn tool_install_at_latest_upgrade() {
----- stderr ----- ----- stderr -----
Resolved [N] packages in [TIME] Resolved [N] packages in [TIME]
Audited [N] packages in [TIME] Checked [N] packages in [TIME]
Installed 2 executables: black, blackd Installed 2 executables: black, blackd
"); ");
+8 -8
View File
@@ -2127,7 +2127,7 @@ fn tool_run_python() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
uv_snapshot!(context.filters(), context.tool_run() uv_snapshot!(context.filters(), context.tool_run()
@@ -2160,7 +2160,7 @@ fn tool_run_python_at_version() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
uv_snapshot!(context.filters(), context.tool_run() uv_snapshot!(context.filters(), context.tool_run()
@@ -2185,7 +2185,7 @@ fn tool_run_python_at_version() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// The @ is optional. // The @ is optional.
@@ -2419,7 +2419,7 @@ fn tool_run_python_from_global_version_file() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
} }
@@ -2448,7 +2448,7 @@ fn tool_run_python_version_overrides_global_pin() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
} }
@@ -2479,7 +2479,7 @@ fn tool_run_python_with_explicit_default_bypasses_global_pin() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
} }
@@ -2501,7 +2501,7 @@ fn tool_run_python_from() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
uv_snapshot!(context.filters(), context.tool_run() uv_snapshot!(context.filters(), context.tool_run()
@@ -2516,7 +2516,7 @@ fn tool_run_python_from() {
----- stderr ----- ----- stderr -----
Resolved in [TIME] Resolved in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
uv_snapshot!(context.filters(), context.tool_run() uv_snapshot!(context.filters(), context.tool_run()
+32 -32
View File
@@ -151,7 +151,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -194,7 +194,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -236,7 +236,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -276,7 +276,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -316,7 +316,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -356,7 +356,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -398,7 +398,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -522,7 +522,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -563,7 +563,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -604,7 +604,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -645,7 +645,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -686,7 +686,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -727,7 +727,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -768,7 +768,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -858,7 +858,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -899,7 +899,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -940,7 +940,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -980,7 +980,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1021,7 +1021,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1062,7 +1062,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1103,7 +1103,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1143,7 +1143,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1184,7 +1184,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1224,7 +1224,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1265,7 +1265,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1306,7 +1306,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1347,7 +1347,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
let pyproject = fs_err::read_to_string(&pyproject_toml)?; let pyproject = fs_err::read_to_string(&pyproject_toml)?;
@@ -1686,7 +1686,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
} }
@@ -1716,7 +1716,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
} }
@@ -1774,7 +1774,7 @@ requires-python = ">=3.12"
----- stderr ----- ----- stderr -----
Resolved 1 package in [TIME] Resolved 1 package in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
} }
@@ -3238,7 +3238,7 @@ conflicts = [[{"extra" = "foo"}, {"extra" = "bar"}]]
----- stderr ----- ----- stderr -----
Resolved 19 packages in [TIME] Resolved 19 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
// Sync an extra, we should not remove it. // Sync an extra, we should not remove it.
@@ -3253,7 +3253,7 @@ conflicts = [[{"extra" = "foo"}, {"extra" = "bar"}]]
----- stderr ----- ----- stderr -----
Resolved 19 packages in [TIME] Resolved 19 packages in [TIME]
Audited in [TIME] Checked in [TIME]
"); ");
Ok(()) Ok(())
+9 -9
View File
@@ -60,7 +60,7 @@ fn test_albatross_in_examples_bird_feeder() {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
" "
); );
@@ -101,7 +101,7 @@ fn test_albatross_in_examples() {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
" "
); );
@@ -142,7 +142,7 @@ fn test_albatross_just_project() {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
" "
); );
@@ -204,7 +204,7 @@ fn test_albatross_project_in_excluded() {
----- stderr ----- ----- stderr -----
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
Audited 2 packages in [TIME] Checked 2 packages in [TIME]
" "
); );
@@ -262,7 +262,7 @@ fn test_albatross_root_workspace() {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
" "
); );
@@ -308,7 +308,7 @@ fn test_albatross_root_workspace_bird_feeder() {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
" "
); );
@@ -354,7 +354,7 @@ fn test_albatross_root_workspace_albatross() {
----- stderr ----- ----- stderr -----
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
" "
); );
@@ -401,7 +401,7 @@ fn test_albatross_virtual_workspace() {
----- stderr ----- ----- stderr -----
Resolved 7 packages in [TIME] Resolved 7 packages in [TIME]
Audited 5 packages in [TIME] Checked 5 packages in [TIME]
" "
); );
@@ -641,7 +641,7 @@ fn test_uv_run_isolate() -> Result<()> {
----- stderr ----- ----- stderr -----
warning: `VIRTUAL_ENV=[VENV]/` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead warning: `VIRTUAL_ENV=[VENV]/` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
Resolved 5 packages in [TIME] Resolved 5 packages in [TIME]
Audited 4 packages in [TIME] Checked 4 packages in [TIME]
" "
); );
+1 -1
View File
@@ -86,7 +86,7 @@ Resolved 2 packages in 0.33ms
$ uv sync $ uv sync
Resolved 2 packages in 0.70ms Resolved 2 packages in 0.70ms
Audited 1 package in 0.02ms Checked 1 package in 0.02ms
``` ```
See the [project guide](./guides/projects.md) to get started. See the [project guide](./guides/projects.md) to get started.