diff --git a/crates/uv/tests/common/mod.rs b/crates/uv/tests/common/mod.rs index c4ff4bcc3..15396962a 100644 --- a/crates/uv/tests/common/mod.rs +++ b/crates/uv/tests/common/mod.rs @@ -266,6 +266,7 @@ impl TestContext { .env("HOME", self.home_dir.as_os_str()) .env("UV_TOOLCHAIN_DIR", "") .env("UV_TEST_PYTHON_PATH", &self.python_path()) + .env("UV_EXCLUDE_NEWER", EXCLUDE_NEWER) .current_dir(self.temp_dir.path()); if cfg!(all(windows, debug_assertions)) { @@ -277,18 +278,6 @@ impl TestContext { /// Create a `pip compile` command for testing. pub fn pip_compile(&self) -> Command { - let mut command = self.pip_compile_without_exclude_newer(); - command.arg("--exclude-newer").arg(EXCLUDE_NEWER); - command - } - - /// Create a `pip compile` command with no `--exclude-newer` option. - /// - /// One should avoid using this in tests to the extent possible because - /// it can result in tests failing when the index state changes. Therefore, - /// if you use this, there should be some other kind of mitigation in place. - /// For example, pinning package versions. - pub fn pip_compile_without_exclude_newer(&self) -> Command { let mut command = Command::new(get_bin()); command.arg("pip").arg("compile"); self.add_shared_args(&mut command); @@ -297,18 +286,6 @@ impl TestContext { /// Create a `pip compile` command for testing. pub fn pip_sync(&self) -> Command { - let mut command = self.pip_sync_without_exclude_newer(); - command.arg("--exclude-newer").arg(EXCLUDE_NEWER); - command - } - - /// Create a `pip sync` command with no `--exclude-newer` option. - /// - /// One should avoid using this in tests to the extent possible because - /// it can result in tests failing when the index state changes. Therefore, - /// if you use this, there should be some other kind of mitigation in place. - /// For example, pinning package versions. - pub fn pip_sync_without_exclude_newer(&self) -> Command { let mut command = Command::new(get_bin()); command.arg("pip").arg("sync"); self.add_shared_args(&mut command); @@ -318,10 +295,7 @@ impl TestContext { /// Create a `uv venv` command pub fn venv(&self) -> Command { let mut command = Command::new(get_bin()); - command - .arg("venv") - .arg("--exclude-newer") - .arg(EXCLUDE_NEWER); + command.arg("venv"); self.add_shared_args(&mut command); command.env_remove("VIRTUAL_ENV"); command @@ -329,18 +303,6 @@ impl TestContext { /// Create a `pip install` command with options shared across scenarios. pub fn pip_install(&self) -> Command { - let mut command = self.pip_install_without_exclude_newer(); - command.arg("--exclude-newer").arg(EXCLUDE_NEWER); - command - } - - /// Create a `pip install` command with no `--exclude-newer` option. - /// - /// One should avoid using this in tests to the extent possible because - /// it can result in tests failing when the index state changes. Therefore, - /// if you use this, there should be some other kind of mitigation in place. - /// For example, pinning package versions. - pub fn pip_install_without_exclude_newer(&self) -> Command { let mut command = Command::new(get_bin()); command.arg("pip").arg("install"); self.add_shared_args(&mut command); @@ -365,18 +327,6 @@ impl TestContext { /// Create a `uv lock` command with options shared across scenarios. pub fn lock(&self) -> Command { - let mut command = self.lock_without_exclude_newer(); - command.arg("--exclude-newer").arg(EXCLUDE_NEWER); - command - } - - /// Create a `uv lock` command with no `--exclude-newer` option. - /// - /// One should avoid using this in tests to the extent possible because - /// it can result in tests failing when the index state changes. Therefore, - /// if you use this, there should be some other kind of mitigation in place. - /// For example, pinning package versions. - pub fn lock_without_exclude_newer(&self) -> Command { let mut command = Command::new(get_bin()); command.arg("lock"); self.add_shared_args(&mut command); @@ -398,18 +348,6 @@ impl TestContext { /// Create a `uv run` command with options shared across scenarios. pub fn run(&self) -> Command { - let mut command = self.run_without_exclude_newer(); - command.arg("--exclude-newer").arg(EXCLUDE_NEWER); - command - } - - /// Create a `uv run` command with no `--exclude-newer` option. - /// - /// One should avoid using this in tests to the extent possible because - /// it can result in tests failing when the index state changes. Therefore, - /// if you use this, there should be some other kind of mitigation in place. - /// For example, pinning package versions. - pub fn run_without_exclude_newer(&self) -> Command { let mut command = Command::new(get_bin()); command.arg("run"); self.add_shared_args(&mut command); @@ -418,18 +356,6 @@ impl TestContext { /// Create a `uv tool run` command with options shared across scenarios. pub fn tool_run(&self) -> Command { - let mut command = self.tool_run_without_exclude_newer(); - command.arg("--exclude-newer").arg(EXCLUDE_NEWER); - command - } - - /// Create a `uv tool run` command with no `--exclude-newer` option. - /// - /// One should avoid using this in tests to the extent possible because - /// it can result in tests failing when the index state changes. Therefore, - /// if you use this, there should be some other kind of mitigation in place. - /// For example, pinning package versions. - pub fn tool_run_without_exclude_newer(&self) -> Command { let mut command = Command::new(get_bin()); command.arg("tool").arg("run"); self.add_shared_args(&mut command); diff --git a/crates/uv/tests/edit.rs b/crates/uv/tests/edit.rs index 0aac50820..7430085ba 100644 --- a/crates/uv/tests/edit.rs +++ b/crates/uv/tests/edit.rs @@ -35,7 +35,7 @@ fn add_registry() -> Result<()> { Prepared 4 packages in [TIME] Installed 4 packages in [TIME] + anyio==3.7.0 - + idna==3.7 + + idna==3.6 + project==0.1.0 (from file://[TEMP_DIR]/) + sniffio==1.3.1 "###); @@ -78,7 +78,7 @@ fn add_registry() -> Result<()> { [[distribution.dependencies]] name = "idna" - version = "3.7" + version = "3.6" source = "registry+https://pypi.org/simple" [[distribution.dependencies]] @@ -88,10 +88,10 @@ fn add_registry() -> Result<()> { [[distribution]] name = "idna" - version = "3.7" + version = "3.6" source = "registry+https://pypi.org/simple" - sdist = { url = "https://files.pythonhosted.org/packages/21/ed/f86a79a07470cb07819390452f178b3bef1d375f2ec021ecfc709fc7cf07/idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc", size = 189575 } - wheels = [{ url = "https://files.pythonhosted.org/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb1992be9e948df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0", size = 66836 }] + sdist = { url = "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz", hash = "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca", size = 175426 } + wheels = [{ url = "https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl", hash = "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f", size = 61567 }] [[distribution]] name = "project" @@ -567,7 +567,7 @@ fn add_remove_dev() -> Result<()> { Prepared 4 packages in [TIME] Installed 4 packages in [TIME] + anyio==3.7.0 - + idna==3.7 + + idna==3.6 + project==0.1.0 (from file://[TEMP_DIR]/) + sniffio==1.3.1 "###); @@ -613,7 +613,7 @@ fn add_remove_dev() -> Result<()> { [[distribution.dependencies]] name = "idna" - version = "3.7" + version = "3.6" source = "registry+https://pypi.org/simple" [[distribution.dependencies]] @@ -623,10 +623,10 @@ fn add_remove_dev() -> Result<()> { [[distribution]] name = "idna" - version = "3.7" + version = "3.6" source = "registry+https://pypi.org/simple" - sdist = { url = "https://files.pythonhosted.org/packages/21/ed/f86a79a07470cb07819390452f178b3bef1d375f2ec021ecfc709fc7cf07/idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc", size = 189575 } - wheels = [{ url = "https://files.pythonhosted.org/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb1992be9e948df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0", size = 66836 }] + sdist = { url = "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz", hash = "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca", size = 175426 } + wheels = [{ url = "https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl", hash = "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f", size = 61567 }] [[distribution]] name = "project" @@ -687,7 +687,7 @@ fn add_remove_dev() -> Result<()> { Uninstalled 4 packages in [TIME] Installed 1 package in [TIME] - anyio==3.7.0 - - idna==3.7 + - idna==3.6 - project==0.1.0 (from file://[TEMP_DIR]/) + project==0.1.0 (from file://[TEMP_DIR]/) - sniffio==1.3.1 diff --git a/crates/uv/tests/lock.rs b/crates/uv/tests/lock.rs index d293968d7..87fc5b596 100644 --- a/crates/uv/tests/lock.rs +++ b/crates/uv/tests/lock.rs @@ -125,7 +125,7 @@ fn lock_sdist_registry() -> Result<()> { "#, )?; - uv_snapshot!(context.filters(), context.lock_without_exclude_newer(), @r###" + uv_snapshot!(context.filters(), context.lock().env_remove("UV_EXCLUDE_NEWER"), @r###" success: true exit_code: 0 ----- stdout ----- @@ -166,7 +166,7 @@ fn lock_sdist_registry() -> Result<()> { }); // Install from the lockfile. - uv_snapshot!(context.filters(), context.sync(), @r###" + uv_snapshot!(context.filters(), context.sync().env_remove("UV_EXCLUDE_NEWER"), @r###" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/uv/tests/lock_scenarios.rs b/crates/uv/tests/lock_scenarios.rs index de9498c21..40aad361f 100644 --- a/crates/uv/tests/lock_scenarios.rs +++ b/crates/uv/tests/lock_scenarios.rs @@ -60,7 +60,8 @@ fn fork_allows_non_conflicting_non_overlapping_dependencies() -> Result<()> { "### )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -170,7 +171,8 @@ fn fork_allows_non_conflicting_repeated_dependencies() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -255,7 +257,8 @@ fn fork_basic() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -359,7 +362,8 @@ fn fork_conflict_unsatisfiable() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -440,7 +444,8 @@ fn fork_filter_sibling_dependencies() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -599,7 +604,8 @@ fn fork_marker_accrue() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -724,7 +730,8 @@ fn fork_marker_disjoint() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -795,7 +802,8 @@ fn fork_marker_inherit_combined_allowed() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -948,7 +956,8 @@ fn fork_marker_inherit_combined_disallowed() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1089,7 +1098,8 @@ fn fork_marker_inherit_combined() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1224,7 +1234,8 @@ fn fork_marker_inherit_isolated() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1351,7 +1362,8 @@ fn fork_marker_inherit_transitive() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1484,7 +1496,8 @@ fn fork_marker_inherit() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1598,7 +1611,8 @@ fn fork_marker_limited_inherit() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1734,7 +1748,8 @@ fn fork_marker_selection() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -1885,7 +1900,8 @@ fn fork_marker_track() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2035,7 +2051,8 @@ fn fork_non_fork_marker_transitive() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2161,7 +2178,8 @@ fn fork_non_local_fork_marker_direct() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2235,7 +2253,8 @@ fn fork_non_local_fork_marker_transitive() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2295,7 +2314,8 @@ fn fork_requires_python_full_prerelease() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2367,7 +2387,8 @@ fn fork_requires_python_full() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2442,7 +2463,8 @@ fn fork_requires_python_patch_overlap() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" @@ -2525,7 +2547,8 @@ fn fork_requires_python() -> Result<()> { "###, )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url") .arg("https://astral-sh.github.io/packse/0.3.29/simple-html/"); uv_snapshot!(filters, cmd, @r###" diff --git a/crates/uv/tests/pip_compile.rs b/crates/uv/tests/pip_compile.rs index 9b7c6df72..02f89cf77 100644 --- a/crates/uv/tests/pip_compile.rs +++ b/crates/uv/tests/pip_compile.rs @@ -29,7 +29,7 @@ fn compile_requirements_in() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in anyio==3.7.0 # via -r requirements.in idna==3.6 @@ -59,7 +59,7 @@ fn compile_requirements_in_annotation_line() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --annotation-style=line requirements.in + # uv pip compile --cache-dir [CACHE_DIR] --annotation-style=line requirements.in anyio==3.7.0 # via -r requirements.in idna==3.6 # via anyio sniffio==1.3.1 # via anyio @@ -87,7 +87,7 @@ fn compile_requirements_in_stdin() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z - + # uv pip compile --cache-dir [CACHE_DIR] - anyio==3.7.0 idna==3.6 # via anyio @@ -132,7 +132,7 @@ fn missing_venv() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in ----- stderr ----- warning: Requirements file requirements.in does not contain any dependencies @@ -169,7 +169,7 @@ dependencies = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml anyio==3.7.0 # via project (pyproject.toml) idna==3.6 @@ -210,7 +210,7 @@ dependencies = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml anyio==3.7.0 # via project (pyproject.toml) idna==3.6 @@ -251,7 +251,7 @@ dependencies = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --annotation-style=line pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --annotation-style=line pyproject.toml anyio==3.7.0 # via project (pyproject.toml) idna==3.6 # via anyio sniffio==1.3.1 # via anyio @@ -282,7 +282,7 @@ fn compile_constraints_txt() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt anyio==3.7.0 # via -r requirements.in idna==3.3 @@ -317,7 +317,7 @@ fn compile_constraints_inline() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in ----- stderr ----- Resolved 0 packages in [TIME] @@ -349,7 +349,7 @@ fn compile_constraints_markers() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -388,7 +388,7 @@ fn compile_constraint_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt blinker==1.7.0 # via flask click==8.1.7 @@ -443,7 +443,7 @@ optional-dependencies.foo = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --extra foo + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --extra foo anyio==3.7.0 # via project (pyproject.toml) idna==3.6 @@ -486,7 +486,7 @@ optional-dependencies."FrIeNdLy-._.-bArD" = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --extra FRiENDlY-...-_-BARd + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --extra FRiENDlY-...-_-BARd anyio==3.7.0 # via project (pyproject.toml) idna==3.6 @@ -571,7 +571,7 @@ build-backend = "poetry.core.masonry.api" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --extra test + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --extra test anyio==3.7.1 # via poetry-editable (pyproject.toml) idna==3.6 @@ -630,7 +630,7 @@ build-backend = "poetry.core.masonry.api" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml anyio==3.7.1 # via poetry-editable (pyproject.toml) idna==3.6 @@ -746,7 +746,7 @@ setup( exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --extra dev + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --extra dev anyio==4.3.0 # via dummypkg (pyproject.toml) idna==3.6 @@ -804,7 +804,7 @@ setup( exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z setup.cfg --extra dev + # uv pip compile --cache-dir [CACHE_DIR] setup.cfg --extra dev anyio==4.3.0 # via dummypkg (setup.cfg) idna==3.6 @@ -852,7 +852,7 @@ setup( exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z setup.py --extra dev + # uv pip compile --cache-dir [CACHE_DIR] setup.py --extra dev anyio==4.3.0 # via dummypkg (setup.py) idna==3.6 @@ -1020,7 +1020,7 @@ fn compile_python_312() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --python-version 3.12 + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-version 3.12 black==23.10.1 # via -r requirements.in click==8.1.7 @@ -1058,7 +1058,7 @@ fn compile_python_312_annotation_line() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --annotation-style=line requirements.in --python-version 3.12 + # uv pip compile --cache-dir [CACHE_DIR] --annotation-style=line requirements.in --python-version 3.12 black==23.10.1 # via -r requirements.in click==8.1.7 # via black mypy-extensions==1.0.0 # via black @@ -1090,7 +1090,7 @@ fn compile_python_312_no_deps() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-deps --python-version 3.12 + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-deps --python-version 3.12 black==23.10.1 # via -r requirements.in @@ -1155,7 +1155,7 @@ fn compile_sdist_resolution_lowest() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --resolution=lowest-direct --python-version 3.12 + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --resolution=lowest-direct --python-version 3.12 anyio @ https://files.pythonhosted.org/packages/2d/b8/7333d87d5f03247215d86a86362fd3e324111788c6cdd8d2e6196a6ba833/anyio-4.2.0.tar.gz # via -r requirements.in idna==3.6 @@ -1240,7 +1240,7 @@ fn omit_non_matching_annotation() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in -c constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -c constraints.txt anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -1272,7 +1272,7 @@ fn compile_numpy_py38() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-build + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-build numpy==1.24.4 # via -r requirements.in @@ -1297,7 +1297,7 @@ fn compile_wheel_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -1338,7 +1338,7 @@ fn compile_sdist_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -1386,7 +1386,7 @@ fn compile_git_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@[COMMIT] # via -r requirements.in @@ -1413,7 +1413,7 @@ fn compile_git_branch_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via -r requirements.in @@ -1441,7 +1441,7 @@ fn compile_git_tag_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via -r requirements.in @@ -1471,7 +1471,7 @@ fn compile_git_date_tag_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via -r requirements.in @@ -1499,7 +1499,7 @@ fn compile_git_long_commit_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via -r requirements.in @@ -1527,7 +1527,7 @@ fn compile_git_short_commit_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via -r requirements.in @@ -1554,7 +1554,7 @@ fn compile_git_refs_https_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@9d01a806f17ddacb9c7b66b1b68574adf790b63f # via -r requirements.in @@ -1580,7 +1580,7 @@ fn compile_git_subdirectory_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in example-pkg-a @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_a # via -r requirements.in @@ -1607,7 +1607,7 @@ fn compile_git_concurrent_access() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in example-pkg-a @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_a # via -r requirements.in example-pkg-b @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_b @@ -1636,7 +1636,7 @@ fn compile_git_unnamed_concurrent_access() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in example-pkg-a @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_a # via -r requirements.in example-pkg-b @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_b @@ -1689,7 +1689,7 @@ fn compile_git_subdirectory_static_metadata() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-workspace-pypackage@b8c4e192456d736c27f2c84c61175c896dba8373#subdirectory=uv-public-pypackage # via -r requirements.in @@ -1715,7 +1715,7 @@ fn mixed_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -1780,7 +1780,7 @@ fn compatible_direct_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in werkzeug @ https://files.pythonhosted.org/packages/ff/1d/960bb4017c68674a1cb099534840f18d3def3ce44aed12b5ed8b78e0153e/Werkzeug-2.0.0-py3-none-any.whl # via -r requirements.in @@ -1832,7 +1832,7 @@ fn conflicting_repeated_url_dependency_markers() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in werkzeug @ https://files.pythonhosted.org/packages/bd/24/11c3ea5a7e866bf2d97f0501d0b4b1c9bbeade102bb4b588f0d2919a5212/Werkzeug-2.0.1-py3-none-any.whl # via -r requirements.in @@ -1909,7 +1909,7 @@ fn compatible_repeated_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389 # via -r requirements.in @@ -1966,7 +1966,7 @@ fn compatible_narrowed_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage.git@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389 # via -r requirements.in @@ -1996,7 +1996,7 @@ fn compatible_broader_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage.git@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389 # via -r requirements.in @@ -2026,7 +2026,7 @@ fn compatible_repeated_narrowed_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage.git@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389 # via -r requirements.in @@ -2084,7 +2084,7 @@ fn allowed_transitive_git_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in hatchling-editable @ https://github.com/astral-sh/uv/files/14762645/hatchling_editable.zip # via -r requirements.in iniconfig @ git+https://github.com/pytest-dev/iniconfig@9cae43103df70bac6fde7b9f35ad11a9f1be0cb4 @@ -2119,7 +2119,7 @@ fn allowed_transitive_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt hatchling-editable @ https://github.com/astral-sh/uv/files/14762645/hatchling_editable.zip # via -r requirements.in iniconfig @ git+https://github.com/pytest-dev/iniconfig@9cae43103df70bac6fde7b9f35ad11a9f1be0cb4 @@ -2157,7 +2157,7 @@ fn allowed_transitive_canonical_url_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt hatchling-editable @ https://github.com/astral-sh/uv/files/14762645/hatchling_editable.zip # via -r requirements.in iniconfig @ git+https://github.com/pytest-dev/iniconfig.git@9cae43103df70bac6fde7b9f35ad11a9f1be0cb4 @@ -2191,7 +2191,7 @@ fn allowed_transitive_url_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in ${HATCH_PATH} # via -r requirements.in iniconfig @ git+https://github.com/pytest-dev/iniconfig@9cae43103df70bac6fde7b9f35ad11a9f1be0cb4 @@ -2260,7 +2260,7 @@ fn requirement_override_prerelease() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt click==7.1.2 # via flask flask==1.1.4 @@ -2313,7 +2313,7 @@ optional-dependencies.bar = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --all-extras + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --all-extras anyio==3.7.0 # via # project (pyproject.toml) @@ -2370,7 +2370,7 @@ optional-dependencies.bar = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --annotation-style=line pyproject.toml --all-extras + # uv pip compile --cache-dir [CACHE_DIR] --annotation-style=line pyproject.toml --all-extras anyio==3.7.0 # via httpcore, project (pyproject.toml) certifi==2024.2.2 # via httpcore h11==0.14.0 # via httpcore @@ -2421,7 +2421,7 @@ optional-dependencies.bar = [ ----- stderr ----- error: the argument '--all-extras' cannot be used with '--extra ' - Usage: uv pip compile --cache-dir [CACHE_DIR] --exclude-newer --all-extras ... + Usage: uv pip compile --cache-dir [CACHE_DIR] --all-extras --exclude-newer ... For more information, try '--help'. "### @@ -2501,7 +2501,8 @@ fn compile_exclude_newer() -> Result<()> { requirements_in.write_str("tqdm")?; uv_snapshot!(context - .pip_compile_without_exclude_newer() + .pip_compile() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.in") .arg("--exclude-newer") // 4.64.0: 2022-04-04T01:48:46.194635Z1 @@ -2523,10 +2524,11 @@ fn compile_exclude_newer() -> Result<()> { // Use a date as input instead. // We interpret a date as including this day uv_snapshot!(context - .pip_compile_without_exclude_newer() - .arg("requirements.in") - .arg("--exclude-newer") - .arg("2022-04-04"), @r###" + .pip_compile() + .env_remove("UV_EXCLUDE_NEWER") + .arg("requirements.in") + .arg("--exclude-newer") + .arg("2022-04-04"), @r###" success: true exit_code: 0 ----- stdout ----- @@ -2542,10 +2544,11 @@ fn compile_exclude_newer() -> Result<()> { // Check the error message for invalid datetime uv_snapshot!(context - .pip_compile_without_exclude_newer() - .arg("requirements.in") - .arg("--exclude-newer") - .arg("2022-04-04+02:00"), @r###" + .pip_compile() + .env_remove("UV_EXCLUDE_NEWER") + .arg("requirements.in") + .arg("--exclude-newer") + .arg("2022-04-04+02:00"), @r###" success: false exit_code: 2 ----- stdout ----- @@ -2583,7 +2586,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2615,7 +2618,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2648,7 +2651,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2681,7 +2684,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2714,7 +2717,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2748,7 +2751,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2785,7 +2788,7 @@ fn compile_wheel_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2833,7 +2836,7 @@ fn compile_source_distribution_path_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -2897,7 +2900,7 @@ fn compile_yanked_version_direct() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in attrs==21.1.0 # via -r requirements.in @@ -2956,7 +2959,7 @@ fn override_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt blinker==1.7.0 # via flask click==8.1.7 @@ -3012,7 +3015,7 @@ fn override_dependency_from_pyproject() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml blinker==1.7.0 # via flask click==8.1.7 @@ -3076,7 +3079,7 @@ fn override_dependency_from_specific_uv_toml() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --config-file ../uv/uv.toml + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --config-file ../uv/uv.toml blinker==1.7.0 # via flask click==8.1.7 @@ -3125,7 +3128,7 @@ fn override_multi_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt black==23.10.1 # via -r requirements.in click==8.1.7 @@ -3215,7 +3218,7 @@ fn override_dependency_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt blinker==1.7.0 # via flask click==8.1.7 @@ -3260,7 +3263,7 @@ fn override_dependency_unnamed_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt blinker==1.7.0 # via flask click==8.1.7 @@ -3299,7 +3302,7 @@ fn missing_registry_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in black==23.10.1 # via -r requirements.in click==8.1.7 @@ -3335,7 +3338,7 @@ fn missing_url_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -3376,7 +3379,7 @@ fn preserve_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -3422,7 +3425,7 @@ fn preserve_project_root() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -3463,7 +3466,7 @@ fn respect_http_env_var() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -3504,7 +3507,7 @@ fn respect_unnamed_env_var() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -3576,7 +3579,7 @@ fn respect_file_env_var() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -3620,7 +3623,7 @@ fn compile_editable() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in -e ../../scripts/packages/poetry_editable # via -r [TEMP_DIR]/requirements.in -e file://../../scripts/packages/black_editable @@ -3680,7 +3683,7 @@ fn deduplicate_editable() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in -e file://../../scripts/packages/black_editable # via -r [TEMP_DIR]/requirements.in aiohttp==3.9.3 @@ -3727,7 +3730,7 @@ fn strip_fragment_unnamed() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in ../../scripts/packages/black_editable#egg=black # via -r [TEMP_DIR]/requirements.in @@ -3754,7 +3757,7 @@ fn strip_fragment_named() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in ../../scripts/packages/black_editable#egg=black # via -r [TEMP_DIR]/requirements.in @@ -3779,7 +3782,7 @@ fn recursive_extras_direct_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in aiohttp==3.9.3 # via black aiosignal==1.3.1 @@ -3824,7 +3827,7 @@ fn compile_editable_url_requirement() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in -e ../../scripts/packages/hatchling_editable # via -r [TEMP_DIR]/requirements.in iniconfig @ git+https://github.com/pytest-dev/iniconfig@9cae43103df70bac6fde7b9f35ad11a9f1be0cb4 @@ -3936,7 +3939,8 @@ fn compile_html() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("jinja2<=3.1.2")?; - uv_snapshot!(context.pip_compile_without_exclude_newer() + uv_snapshot!(context.pip_compile() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.in") .arg("--index-url") .arg("https://download.pytorch.org/whl"), @r###" @@ -3973,7 +3977,7 @@ fn trailing_slash() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in jinja2==3.1.3 # via -r requirements.in markupsafe==2.1.5 @@ -3992,7 +3996,7 @@ fn trailing_slash() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in jinja2==3.1.3 # via -r requirements.in markupsafe==2.1.5 @@ -4019,7 +4023,7 @@ fn compile_legacy_sdist_pep_517() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in flake8 @ https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz # via -r requirements.in mccabe==0.7.0 @@ -4051,7 +4055,7 @@ fn compile_legacy_sdist_setuptools() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --legacy-setup-py + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --legacy-setup-py flake8 @ https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz # via -r requirements.in mccabe==0.7.0 @@ -4083,7 +4087,7 @@ fn generate_hashes_registry() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --generate-hashes anyio==4.0.0 \ --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f \ --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a @@ -4119,7 +4123,7 @@ fn generate_hashes_source_distribution_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --generate-hashes anyio @ https://files.pythonhosted.org/packages/2d/b8/7333d87d5f03247215d86a86362fd3e324111788c6cdd8d2e6196a6ba833/anyio-4.2.0.tar.gz \ --hash=sha256:e1875bb4b4e2de1669f4bc7869b6d3f54231cdced71605e6e64c9be77e3be50f # via -r requirements.in @@ -4154,7 +4158,7 @@ fn generate_hashes_built_distribution_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --generate-hashes anyio @ https://files.pythonhosted.org/packages/14/fd/2f20c40b45e4fb4324834aea24bd4afdf1143390242c0b33774da0e2e34f/anyio-4.3.0-py3-none-any.whl \ --hash=sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8 # via -r requirements.in @@ -4189,7 +4193,7 @@ fn generate_hashes_git() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --generate-hashes anyio @ git+https://github.com/agronholm/anyio@437a7e310925a962cab4a58fcd2455fbcd578d51 # via -r requirements.in idna==3.6 \ @@ -4223,7 +4227,7 @@ fn generate_hashes_unnamed_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --generate-hashes anyio @ https://files.pythonhosted.org/packages/14/fd/2f20c40b45e4fb4324834aea24bd4afdf1143390242c0b33774da0e2e34f/anyio-4.3.0-py3-none-any.whl \ --hash=sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8 # via -r requirements.in @@ -4264,7 +4268,7 @@ fn generate_hashes_local_directory() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in --generate-hashes anyio==4.3.0 \ --hash=sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8 \ --hash=sha256:f75253795a87df48568485fd18cdd2a3fa5c4f7c5be8e5e36637733fce06fed6 @@ -4307,7 +4311,7 @@ fn generate_hashes_editable() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in --generate-hashes -e ../../scripts/packages/poetry_editable # via -r [TEMP_DIR]/requirements.in anyio==4.3.0 \ @@ -4349,7 +4353,7 @@ fn find_links_directory() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in markupsafe==2.1.5 # via werkzeug numpy==1.26.4 @@ -4382,7 +4386,7 @@ fn find_links_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-index + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-index tqdm==4.64.1 # via -r requirements.in @@ -4409,7 +4413,7 @@ fn find_links_env_var() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-index + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-index tqdm==4.64.1 # via -r requirements.in @@ -4437,7 +4441,7 @@ fn find_links_requirements_txt() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-index --emit-find-links + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-index --emit-find-links --find-links https://download.pytorch.org/whl/torch_stable.html tqdm==4.64.1 @@ -4471,7 +4475,7 @@ fn avoid_irrelevant_extras() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in anyio==4.3.0 # via extras extras==0.0.1 @@ -4524,7 +4528,7 @@ coverage = ["example[test]", "extras>=0.0.1,<=0.0.2"] exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -e . # via -r requirements.in extras==0.0.1 @@ -4571,7 +4575,7 @@ fn upgrade_none() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt black==23.10.1 # via -r requirements.in click==8.1.2 @@ -4627,7 +4631,7 @@ fn upgrade_all() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt black==23.10.1 # via -r requirements.in click==8.1.7 @@ -4684,7 +4688,7 @@ fn upgrade_package() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt --upgrade-package click + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt --upgrade-package click black==23.10.1 # via -r requirements.in click==8.1.7 @@ -4790,7 +4794,7 @@ fn unnamed_requirement_with_package_name() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -4830,7 +4834,7 @@ fn no_annotate() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-annotate + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-annotate black==23.10.1 click==8.1.7 mypy-extensions==1.0.0 @@ -4958,7 +4962,7 @@ fn allow_unsafe() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --allow-unsafe + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --allow-unsafe markupsafe==2.1.5 # via werkzeug werkzeug==3.0.1 @@ -5014,7 +5018,7 @@ fn emit_index_urls() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-url --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-url --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple @@ -5055,7 +5059,7 @@ fn emit_find_links() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-find-links --find-links ./ + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-find-links --find-links ./ --find-links ./ black==23.10.1 @@ -5097,7 +5101,7 @@ fn emit_build_options() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-build-options --only-binary black --no-binary :all: + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-build-options --only-binary black --no-binary :all: --no-binary :all: --only-binary black @@ -5163,7 +5167,7 @@ fn index_url_requirements_txt() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in tqdm==4.66.2 # via -r requirements.in @@ -5219,7 +5223,7 @@ fn matching_index_urls_requirements_txt() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.in ----- stderr ----- Resolved 0 packages in [TIME] @@ -5259,7 +5263,7 @@ fn offline_registry() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in black==23.10.1 # via -r requirements.in click==8.1.7 @@ -5286,7 +5290,7 @@ fn offline_registry() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --offline + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --offline black==23.10.1 # via -r requirements.in click==8.1.7 @@ -5323,7 +5327,7 @@ fn offline_registry_backtrack() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in iniconfig==1.1.1 # via -r requirements.in @@ -5343,7 +5347,7 @@ fn offline_registry_backtrack() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --offline + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --offline iniconfig==1.1.1 # via -r requirements.in @@ -5433,7 +5437,7 @@ fn offline_direct_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in iniconfig @ https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl # via -r requirements.in @@ -5450,7 +5454,7 @@ fn offline_direct_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --offline + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --offline iniconfig @ https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl # via -r requirements.in @@ -5542,7 +5546,7 @@ fn invalid_metadata_backtrack() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-index + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-index validation==1.0.0 # via -r requirements.in @@ -5575,7 +5579,7 @@ fn compile_relative_subfile() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in anyio==4.3.0 # via -r subdir/requirements-dev.in idna==3.6 @@ -5604,7 +5608,7 @@ fn compile_none_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in entrypoints==0.3 # via -r requirements.in @@ -5636,7 +5640,7 @@ fn compile_types_pytz() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in -o requirements.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -o requirements.txt types-pytz==2021.1.0 # via -r requirements.in @@ -5667,7 +5671,7 @@ fn compile_unnamed_preference() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in -o requirements.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -o requirements.txt black==24.3.0 # via -r requirements.in click==8.1.7 @@ -5707,7 +5711,7 @@ fn compile_constraints_compatible_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt anyio @ https://files.pythonhosted.org/packages/bf/cd/d6d9bb1dadf73e7af02d18225cbd2c93f8552e13130484f1c8dcfece292b/anyio-4.2.0-py3-none-any.whl # via # -c constraints.txt @@ -5744,7 +5748,7 @@ fn compile_constraints_compatible_url_version() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt anyio @ https://files.pythonhosted.org/packages/bf/cd/d6d9bb1dadf73e7af02d18225cbd2c93f8552e13130484f1c8dcfece292b/anyio-4.2.0-py3-none-any.whl # via # -c constraints.txt @@ -5829,7 +5833,7 @@ fn index_url_from_command_line() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in anyio==3.7.1 # via -r requirements.in idna==3.6 @@ -5884,7 +5888,7 @@ fn no_deps_valid_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-deps flask==3.0.2 # via -r requirements.in @@ -5910,7 +5914,7 @@ fn no_deps_invalid_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-deps flask==3.0.2 # via -r requirements.in @@ -5979,7 +5983,7 @@ dependencies = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-deps -e [TEMP_DIR]/editable1 # via -r requirements.in -e [TEMP_DIR]/editable2 @@ -6007,7 +6011,7 @@ fn editable_invalid_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in -e ../../scripts/packages/black_editable # via -r [TEMP_DIR]/requirements.in @@ -6033,7 +6037,7 @@ fn no_strip_extra() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-strip-extras + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-strip-extras blinker==1.7.0 # via flask click==8.1.7 @@ -6076,7 +6080,7 @@ fn no_strip_extras() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-strip-extras + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-strip-extras alabaster==0.7.16 # via sphinx anyio[doc, trio]==4.3.0 @@ -6177,7 +6181,7 @@ fn no_strip_markers() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-strip-markers --python-platform linux + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-strip-markers --python-platform linux anyio==4.3.0 ; python_version > '3.11' # via -r requirements.in idna==3.6 ; python_version > '3.11' @@ -6213,7 +6217,7 @@ fn no_strip_markers_multiple_markers() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-strip-markers --python-platform windows + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-strip-markers --python-platform windows attrs==23.2.0 ; python_version > '3.11' or sys_platform == 'win32' # via # outcome @@ -6258,7 +6262,7 @@ fn no_strip_markers_transitive_marker() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --no-strip-markers --python-platform windows + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --no-strip-markers --python-platform windows attrs==23.2.0 ; python_version > '3.11' # via # outcome @@ -6303,7 +6307,7 @@ fn universal() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --universal + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --universal attrs==23.2.0 ; python_version > '3.11' or sys_platform == 'win32' # via # outcome @@ -6348,7 +6352,7 @@ fn universal_conflicting() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --universal + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --universal async-generator==1.10 ; sys_platform == 'win32' # via trio attrs==23.2.0 ; sys_platform == 'darwin' or sys_platform == 'win32' @@ -6399,7 +6403,7 @@ fn compile_constraints_compatible_version() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt distlib==0.3.8 # via virtualenv filelock==3.8.0 @@ -6497,7 +6501,7 @@ fn editable_override() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in --override [TEMP_DIR]/overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in --override [TEMP_DIR]/overrides.txt -e ../../scripts/packages/black_editable # via # --override [TEMP_DIR]/overrides.txt @@ -6530,7 +6534,7 @@ fn override_editable() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in --override [TEMP_DIR]/overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in --override [TEMP_DIR]/overrides.txt black==23.10.1 # via # --override [TEMP_DIR]/overrides.txt @@ -6577,7 +6581,7 @@ fn override_with_compatible_constraint() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt --override overrides.txt anyio==3.0.0 # via # -c constraints.txt @@ -6646,7 +6650,7 @@ fn unsafe_package() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --unsafe-package jinja2 --unsafe-package pydantic + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --unsafe-package jinja2 --unsafe-package pydantic blinker==1.7.0 # via flask click==8.1.7 @@ -6688,7 +6692,7 @@ fn pre_release_upper_bound_exclude() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --prerelease=allow + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --prerelease=allow click==7.1.2 # via flask flask==1.1.4 @@ -6725,7 +6729,7 @@ fn pre_release_upper_bound_include() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --prerelease=allow + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --prerelease=allow click==8.1.7 # via flask flask==2.0.0rc2 @@ -6763,7 +6767,7 @@ fn pre_alias() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --pre + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --pre click==7.1.2 # via flask flask==1.1.4 @@ -6803,7 +6807,7 @@ fn pre_release_constraint() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --constraint constraints.txt click==8.1.7 # via flask flask==2.0.0rc2 @@ -6862,7 +6866,7 @@ dev = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --extra dev + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --extra dev anyio==4.3.0 # via project (pyproject.toml) idna==3.6 @@ -6912,7 +6916,7 @@ dev = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml --extra dev + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml --extra dev anyio==4.3.0 # via project (pyproject.toml) idna==3.6 @@ -6946,7 +6950,7 @@ fn editable_direct_dependency() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in --resolution lowest-direct + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in --resolution lowest-direct -e ../../scripts/packages/setuptools_editable # via -r [TEMP_DIR]/requirements.in iniconfig==0.1 @@ -6974,7 +6978,7 @@ fn empty_index_url_env_var() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-url + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-url --index-url https://pypi.org/simple anyio==4.3.0 @@ -7007,7 +7011,7 @@ fn empty_extra_index_url_env_var() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-url + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-url --index-url https://pypi.org/simple anyio==4.3.0 @@ -7041,7 +7045,7 @@ fn empty_index_url_env_var_override() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-url + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-url --index-url https://test.pypi.org/simple idna==2.7 @@ -7070,7 +7074,7 @@ fn index_url_env_var_override() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-url + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-url --index-url https://test.pypi.org/simple idna==2.7 @@ -7101,7 +7105,7 @@ fn expand_env_var_requirements_txt() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in anyio==4.3.0 # via -r requirements-dev.in idna==3.6 @@ -7239,7 +7243,7 @@ dev = [ exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -e . # via -r requirements.in anyio @ https://files.pythonhosted.org/packages/bf/cd/d6d9bb1dadf73e7af02d18225cbd2c93f8552e13130484f1c8dcfece292b/anyio-4.2.0-py3-none-any.whl @@ -7289,7 +7293,7 @@ dev = ["setuptools"] exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --resolution=lowest-direct + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --resolution=lowest-direct -e . # via -r requirements.in packaging==24.0 @@ -7320,7 +7324,7 @@ fn metadata_2_2() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in boltons==23.1.1 # via pyo3-mixed pyo3-mixed @ https://files.pythonhosted.org/packages/2b/b8/e04b783d3569d5b61b1dcdfda683ac2e3617340539aecd0f099fbade0b4a/pyo3_mixed-2.1.5.tar.gz @@ -7348,7 +7352,8 @@ fn no_stream() -> Result<()> { constraints_in.write_str("protobuf==5.26.0")?; uv_snapshot!(context - .pip_compile_without_exclude_newer() + .pip_compile() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.in") .arg("-c") .arg("constraints.in") @@ -7452,7 +7457,7 @@ fn compile_root_uri_editable() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -e ${ROOT_PATH} # via -r requirements.in black @ file://[WORKSPACE]/scripts/packages/root_editable/../black_editable @@ -7484,7 +7489,7 @@ fn compile_root_uri_non_editable() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in ${BLACK_PATH} # via # -r requirements.in @@ -7551,7 +7556,7 @@ fn preserve_hashes_no_upgrade() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt --generate-hashes markupsafe==2.1.2 \ --hash=sha256:0576fe974b40a400449768941d5d0858cc624e3249dfd1e0c33674e5c7ca7aed \ --hash=sha256:085fd3201e7b12809f9e6e9bc1e5c96a368c8523fad5afb02afe3c051ae4afcc \ @@ -7596,7 +7601,7 @@ fn preserve_hashes_upgrade() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt --generate-hashes markupsafe==2.1.2 \ --hash=sha256:0576fe974b40a400449768941d5d0858cc624e3249dfd1e0c33674e5c7ca7aed \ --hash=sha256:085fd3201e7b12809f9e6e9bc1e5c96a368c8523fad5afb02afe3c051ae4afcc \ @@ -7684,7 +7689,7 @@ fn preserve_hashes_no_existing_hashes() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt --generate-hashes markupsafe==2.1.2 \ --hash=sha256:0576fe974b40a400449768941d5d0858cc624e3249dfd1e0c33674e5c7ca7aed \ --hash=sha256:085fd3201e7b12809f9e6e9bc1e5c96a368c8523fad5afb02afe3c051ae4afcc \ @@ -7775,7 +7780,7 @@ fn preserve_hashes_newer_version() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --output-file requirements.txt --generate-hashes + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --output-file requirements.txt --generate-hashes markupsafe==2.1.3 \ --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \ --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \ @@ -7867,7 +7872,7 @@ fn unnamed_path_requirement() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in anyio==4.3.0 # via # httpx @@ -7927,7 +7932,7 @@ fn unnamed_git_requirement() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -7966,7 +7971,7 @@ fn unnamed_https_requirement() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in blinker==1.7.0 # via flask click==8.1.7 @@ -8005,7 +8010,7 @@ fn dynamic_dependencies() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in anyio==4.3.0 # via hatchling-dynamic ../../scripts/packages/hatchling_dynamic @@ -8045,7 +8050,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-marker-expression + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: # python_version == '3.12' and platform_python_implementation == 'CPython' and platform_system == 'Linux' anyio==4.3.0 @@ -8082,7 +8087,7 @@ fn emit_marker_expression_direct() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-marker-expression + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: # python_version == '3.12' and platform_python_implementation == 'CPython' and platform_system == 'Linux' and sys_platform == 'linux' anyio==4.3.0 @@ -8125,7 +8130,7 @@ fn emit_marker_expression_conditional() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-marker-expression + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: # sys_platform == 'linux' @@ -8162,7 +8167,7 @@ fn emit_marker_expression_pypy() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-marker-expression + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: # python_version == '3.12' and implementation_name == 'cpython' pendulum==3.0.0 @@ -8200,7 +8205,7 @@ fn local_version_of_remote_package() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -8237,7 +8242,7 @@ fn local_version_of_remote_package() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -8269,7 +8274,7 @@ fn local_version_of_remote_package() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z [TEMP_DIR]/requirements.in --output-file [TEMP_DIR]/requirements.txt + # uv pip compile --cache-dir [CACHE_DIR] [TEMP_DIR]/requirements.in --output-file [TEMP_DIR]/requirements.txt anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -8298,7 +8303,7 @@ fn pendulum_no_tzdata_on_windows() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in pendulum==3.0.0 # via -r requirements.in python-dateutil==2.9.0.post0 @@ -8381,7 +8386,7 @@ requires-python = ">3.8" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in anyio @ file://[TEMP_DIR]/anyio/ # via lib ./app @@ -8467,7 +8472,7 @@ requires-python = ">3.8" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt anyio==3.7.0 # via # --override overrides.txt @@ -8581,7 +8586,7 @@ requires-python = ">3.8" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --override overrides.txt --constraint constraints.txt + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --override overrides.txt --constraint constraints.txt ./anyio # via # -c constraints.txt @@ -8630,7 +8635,7 @@ requires-python = ">3.8" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in click==8.1.7 # via flask . @@ -8684,7 +8689,7 @@ requires-python = ">3.8" exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in + # uv pip compile --cache-dir [CACHE_DIR] requirements.in -e . # via -r requirements.in click==8.1.7 @@ -8766,7 +8771,7 @@ fn compile_index_url_fallback() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --index-strategy unsafe-any-match requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] --index-strategy unsafe-any-match requirements.in --no-deps jinja2==3.1.0 # via -r requirements.in @@ -8806,7 +8811,7 @@ fn compile_index_url_fallback_prefer_primary() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --index-strategy unsafe-any-match requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] --index-strategy unsafe-any-match requirements.in --no-deps anyio==3.5.0 # via -r requirements.in @@ -8846,7 +8851,7 @@ fn compile_index_url_unsafe_highest() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --index-strategy unsafe-best-match requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] --index-strategy unsafe-best-match requirements.in --no-deps anyio==4.3.0 # via -r requirements.in @@ -8888,7 +8893,7 @@ fn compile_index_url_unsafe_lowest() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --resolution lowest --index-strategy unsafe-best-match requirements.in --no-deps + # uv pip compile --cache-dir [CACHE_DIR] --resolution lowest --index-strategy unsafe-best-match requirements.in --no-deps anyio==1.0.0 # via -r requirements.in @@ -8917,7 +8922,7 @@ fn emit_index_annotation_hide_password() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-annotation + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation certifi==2024.2.2 # via requests # from https://pypi.org/simple @@ -8957,7 +8962,7 @@ fn emit_index_annotation_pypi_org_simple() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-annotation + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation certifi==2024.2.2 # via requests # from https://pypi.org/simple @@ -9001,7 +9006,7 @@ fn emit_index_annotation_no_annotate() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-annotation --no-annotate + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation --no-annotate certifi==2024.2.2 # from https://pypi.org/simple charset-normalizer==3.3.2 @@ -9038,7 +9043,7 @@ fn emit_index_annotation_line() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-annotation --annotation-style line + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation --annotation-style line certifi==2024.2.2 # via requests # from https://pypi.org/simple charset-normalizer==3.3.2 # via requests @@ -9075,7 +9080,7 @@ fn emit_index_annotation_multiple_indexes() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --emit-index-annotation + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation requests==2.5.4.1 # via -r requirements.in # from https://test.pypi.org/simple @@ -9134,7 +9139,7 @@ fn python_platform() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --python-platform aarch64-unknown-linux-gnu + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform aarch64-unknown-linux-gnu black==24.3.0 # via -r requirements.in click==8.1.7 @@ -9163,7 +9168,7 @@ fn python_platform() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in --python-platform x86_64-pc-windows-msvc + # uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform x86_64-pc-windows-msvc black==24.3.0 # via -r requirements.in click==8.1.7 @@ -9219,7 +9224,7 @@ fn git_source_default_branch() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@[COMMIT] # via project (pyproject.toml) @@ -9256,7 +9261,7 @@ fn git_source_branch() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via project (pyproject.toml) @@ -9293,7 +9298,7 @@ fn git_source_tag() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via project (pyproject.toml) @@ -9330,7 +9335,7 @@ fn git_source_long_commit() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via project (pyproject.toml) @@ -9367,7 +9372,7 @@ fn git_source_short_commit() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979 # via project (pyproject.toml) @@ -9404,7 +9409,7 @@ fn git_source_refs() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@9d01a806f17ddacb9c7b66b1b68574adf790b63f # via project (pyproject.toml) @@ -9481,7 +9486,7 @@ fn warn_missing_constraint() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml anyio @ https://files.pythonhosted.org/packages/14/fd/2f20c40b45e4fb4324834aea24bd4afdf1143390242c0b33774da0e2e34f/anyio-4.3.0-py3-none-any.whl # via foo (pyproject.toml) idna==3.6 @@ -9522,7 +9527,7 @@ fn dont_warn_missing_constraint_without_sources() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] --preview pyproject.toml anyio==4.3.0 # via foo (pyproject.toml) idna==3.6 @@ -9593,7 +9598,7 @@ fn tool_uv_sources() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --preview some_dir/pyproject.toml --extra utils + # uv pip compile --cache-dir [CACHE_DIR] --preview some_dir/pyproject.toml --extra utils -e ../poetry_editable # via project (some_dir/pyproject.toml) anyio==4.3.0 @@ -9642,7 +9647,7 @@ fn dynamic_pyproject_toml() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z pyproject.toml + # uv pip compile --cache-dir [CACHE_DIR] pyproject.toml ----- stderr ----- Resolved 0 packages in [TIME] @@ -9666,7 +9671,7 @@ fn file_url() -> Result<()> { exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z file://[TEMP_DIR]/requirements%20file.txt + # uv pip compile --cache-dir [CACHE_DIR] file://[TEMP_DIR]/requirements%20file.txt iniconfig==2.0.0 # via -r requirements file.txt @@ -9685,7 +9690,8 @@ fn no_binary_only_binary() -> Result<()> { requirements_in.write_str("source-distribution")?; uv_snapshot!(context - .pip_compile_without_exclude_newer() + .pip_compile() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.in") .arg("--only-binary") .arg(":all:"), @r###" @@ -9701,7 +9707,8 @@ fn no_binary_only_binary() -> Result<()> { ); uv_snapshot!(context - .pip_compile_without_exclude_newer() + .pip_compile() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.in") .arg("--only-binary") .arg(":all:") diff --git a/crates/uv/tests/pip_compile_scenarios.rs b/crates/uv/tests/pip_compile_scenarios.rs index 6df0e7233..342e701db 100644 --- a/crates/uv/tests/pip_compile_scenarios.rs +++ b/crates/uv/tests/pip_compile_scenarios.rs @@ -31,6 +31,7 @@ fn command(context: &TestContext, python_versions: &[&str]) -> Command { .arg("--find-links") .arg("https://raw.githubusercontent.com/astral-sh/packse/0.3.29/vendor/links.html"); context.add_shared_args(&mut command); + command.env_remove("UV_EXCLUDE_NEWER"); command.env("UV_TEST_PYTHON_PATH", python_path); command diff --git a/crates/uv/tests/pip_install.rs b/crates/uv/tests/pip_install.rs index 8d0370321..57918bfec 100644 --- a/crates/uv/tests/pip_install.rs +++ b/crates/uv/tests/pip_install.rs @@ -1314,7 +1314,8 @@ fn install_no_index_version() { fn install_extra_index_url_has_priority() { let context = TestContext::new("3.12"); - uv_snapshot!(context.pip_install_without_exclude_newer() + uv_snapshot!(context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("--index-url") .arg("https://test.pypi.org/simple") .arg("--extra-index-url") @@ -3508,7 +3509,8 @@ fn install_utf16le_requirements() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_binary(&utf8_to_utf16_with_bom_le("tomli"))?; - uv_snapshot!(context.pip_install_without_exclude_newer() + uv_snapshot!(context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("-r") .arg("requirements.txt"), @r###" success: true @@ -3534,7 +3536,8 @@ fn install_utf16be_requirements() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_binary(&utf8_to_utf16_with_bom_be("tomli"))?; - uv_snapshot!(context.pip_install_without_exclude_newer() + uv_snapshot!(context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("-r") .arg("requirements.txt"), @r###" success: true @@ -5633,7 +5636,8 @@ fn local_index_absolute() -> Result<()> { "#, Url::from_directory_path(context.workspace_root.join("scripts/links/")).unwrap().as_str()})?; - uv_snapshot!(context.filters(), context.pip_install_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("tqdm") .arg("--index-url") .arg(Url::from_directory_path(root).unwrap().as_str()), @r###" @@ -5683,7 +5687,8 @@ fn local_index_relative() -> Result<()> { "#, Url::from_directory_path(context.workspace_root.join("scripts/links/")).unwrap().as_str()})?; - uv_snapshot!(context.filters(), context.pip_install_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("tqdm") .arg("--index-url") .arg("./simple-html"), @r###" @@ -5739,7 +5744,8 @@ fn local_index_requirements_txt_absolute() -> Result<()> { tqdm "#, Url::from_directory_path(root).unwrap().as_str()})?; - uv_snapshot!(context.filters(), context.pip_install_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("-r") .arg("requirements.txt"), @r###" success: true @@ -5796,7 +5802,8 @@ fn local_index_requirements_txt_relative() -> Result<()> { ", )?; - uv_snapshot!(context.filters(), context.pip_install_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_install() + .env_remove("UV_EXCLUDE_NEWER") .arg("-r") .arg("requirements.txt"), @r###" success: true diff --git a/crates/uv/tests/pip_install_scenarios.rs b/crates/uv/tests/pip_install_scenarios.rs index ed1f8b63d..6c915cca3 100644 --- a/crates/uv/tests/pip_install_scenarios.rs +++ b/crates/uv/tests/pip_install_scenarios.rs @@ -50,6 +50,7 @@ fn command(context: &TestContext) -> Command { .arg("--find-links") .arg("https://raw.githubusercontent.com/astral-sh/packse/0.3.29/vendor/links.html"); context.add_shared_args(&mut command); + command.env_remove("UV_EXCLUDE_NEWER"); command } diff --git a/crates/uv/tests/pip_sync.rs b/crates/uv/tests/pip_sync.rs index 7e99e984c..77e9bf7eb 100644 --- a/crates/uv/tests/pip_sync.rs +++ b/crates/uv/tests/pip_sync.rs @@ -39,7 +39,7 @@ fn missing_requirements_txt() { let requirements_txt = context.temp_dir.child("requirements.txt"); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: false @@ -60,7 +60,7 @@ fn missing_venv() -> Result<()> { requirements.write_str("anyio")?; fs::remove_dir_all(&context.venv)?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer().arg("requirements.txt"), @r###" + uv_snapshot!(context.filters(), context.pip_sync().arg("requirements.txt"), @r###" success: false exit_code: 2 ----- stdout ----- @@ -83,7 +83,7 @@ fn install() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -124,7 +124,7 @@ fn install_copy() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--link-mode") .arg("copy") @@ -159,7 +159,7 @@ fn install_hardlink() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--link-mode") .arg("hardlink") @@ -194,7 +194,7 @@ fn install_many() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\ntomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -226,13 +226,13 @@ fn noop() -> Result<()> { requirements_txt.write_str("MarkupSafe==2.1.3")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() .success(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -261,7 +261,7 @@ fn link() -> Result<()> { requirements_txt.write_str("iniconfig==2.0.0")?; context1 - .pip_sync_without_exclude_newer() + .pip_sync() .arg(requirements_txt.path()) .arg("--strict") .assert() @@ -269,7 +269,7 @@ fn link() -> Result<()> { // Create a separate virtual environment, but reuse the same cache. let context2 = TestContext::new("3.12"); - let mut cmd = context1.pip_sync_without_exclude_newer(); + let mut cmd = context1.pip_sync(); cmd.env("VIRTUAL_ENV", context2.venv.as_os_str()) .current_dir(&context2.temp_dir); @@ -302,7 +302,7 @@ fn add_remove() -> Result<()> { requirements_txt.write_str("iniconfig==2.0.0")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() @@ -311,7 +311,7 @@ fn add_remove() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("tomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -344,7 +344,7 @@ fn install_sequential() -> Result<()> { requirements_txt.write_str("iniconfig==2.0.0")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() @@ -353,7 +353,7 @@ fn install_sequential() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("iniconfig==2.0.0\ntomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -385,7 +385,7 @@ fn upgrade() -> Result<()> { requirements_txt.write_str("tomli==2.0.0")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() @@ -394,7 +394,7 @@ fn upgrade() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("tomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -424,7 +424,7 @@ fn install_url() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("werkzeug @ https://files.pythonhosted.org/packages/ff/1d/960bb4017c68674a1cb099534840f18d3def3ce44aed12b5ed8b78e0153e/Werkzeug-2.0.0-py3-none-any.whl")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -453,7 +453,7 @@ fn install_git_commit() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -486,7 +486,7 @@ fn install_git_tag() -> Result<()> { "uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@test-tag", )?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -517,7 +517,7 @@ fn install_git_subdirectories() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("example-pkg-a @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_a\nexample-pkg-b @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_b")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -548,7 +548,8 @@ fn install_sdist() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("source-distribution==0.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -578,7 +579,7 @@ fn install_sdist_url() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -614,7 +615,7 @@ fn install_sdist_archive_type_bz2() -> Result<()> { .display() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -642,13 +643,13 @@ fn install_url_then_install_url() -> Result<()> { requirements_txt.write_str("werkzeug @ https://files.pythonhosted.org/packages/ff/1d/960bb4017c68674a1cb099534840f18d3def3ce44aed12b5ed8b78e0153e/Werkzeug-2.0.0-py3-none-any.whl")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() .success(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -676,7 +677,7 @@ fn install_url_then_install_version() -> Result<()> { requirements_txt.write_str("werkzeug @ https://files.pythonhosted.org/packages/ff/1d/960bb4017c68674a1cb099534840f18d3def3ce44aed12b5ed8b78e0153e/Werkzeug-2.0.0-py3-none-any.whl")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() @@ -685,7 +686,7 @@ fn install_url_then_install_version() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("werkzeug==2.0.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -713,7 +714,7 @@ fn install_version_then_install_url() -> Result<()> { requirements_txt.write_str("werkzeug==2.0.0")?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .assert() @@ -722,7 +723,7 @@ fn install_version_then_install_url() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("werkzeug @ https://files.pythonhosted.org/packages/ff/1d/960bb4017c68674a1cb099534840f18d3def3ce44aed12b5ed8b78e0153e/Werkzeug-2.0.0-py3-none-any.whl")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -753,7 +754,7 @@ fn install_numpy_py38() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("numpy")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -781,7 +782,7 @@ fn install_no_index() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("iniconfig==2.0.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--no-index") .arg("--strict"), @r###" @@ -811,7 +812,7 @@ fn install_no_index_cached() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("iniconfig==2.0.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -830,7 +831,7 @@ fn install_no_index_cached() -> Result<()> { context.pip_uninstall().arg("iniconfig").assert().success(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--no-index") .arg("--strict"), @r###" @@ -859,7 +860,7 @@ fn warn_on_yanked() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.txt"); requirements_in.write_str("colorama==0.4.2")?; - uv_snapshot!(context.filters(), windows_filters=false, context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), windows_filters=false, context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -886,7 +887,7 @@ fn warn_on_yanked_dry_run() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.txt"); requirements_in.write_str("colorama==0.4.2")?; - uv_snapshot!(context.filters(), windows_filters=false, context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), windows_filters=false, context.pip_sync() .arg("requirements.txt") .arg("--dry-run") .arg("--strict"), @r###" @@ -923,7 +924,7 @@ fn install_local_wheel() -> Result<()> { Url::from_file_path(archive.path()).unwrap() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -944,7 +945,7 @@ fn install_local_wheel() -> Result<()> { context.reset_venv(); // Reinstall. The wheel should come from the cache, so there shouldn't be a "download". - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -969,7 +970,7 @@ fn install_local_wheel() -> Result<()> { filetime::set_file_mtime(&archive, filetime::FileTime::now()).unwrap(); // Reinstall. The wheel should be "downloaded" again. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -991,7 +992,7 @@ fn install_local_wheel() -> Result<()> { filetime::set_file_mtime(&archive, filetime::FileTime::now()).unwrap(); // Reinstall into the same virtual environment. The wheel should be reinstalled. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1009,7 +1010,7 @@ fn install_local_wheel() -> Result<()> { ); // Reinstall into the same virtual environment. The wheel should _not_ be reinstalled. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1028,7 +1029,7 @@ fn install_local_wheel() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str(&format!("{}", Url::from_file_path(archive.path()).unwrap()))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1063,7 +1064,7 @@ fn mismatched_version() -> Result<()> { Url::from_file_path(archive.path()).unwrap() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: false @@ -1098,7 +1099,7 @@ fn mismatched_name() -> Result<()> { Url::from_file_path(archive.path()).unwrap() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: false @@ -1134,7 +1135,7 @@ fn install_local_source_distribution() -> Result<()> { Url::from_file_path(archive.path()).unwrap() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1173,7 +1174,7 @@ fn install_build_system_no_backend() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("build-system-no-backend @ https://files.pythonhosted.org/packages/ec/25/1e531108ca027dc3a3b37d351f4b86d811df4884c6a81cd99e73b8b589f5/build-system-no-backend-0.1.0.tar.gz")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1203,7 +1204,7 @@ fn install_url_source_dist_cached() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("source_distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1225,7 +1226,7 @@ fn install_url_source_dist_cached() -> Result<()> { // Re-run the installation in a new virtual environment. context.reset_venv(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1258,7 +1259,7 @@ fn install_url_source_dist_cached() -> Result<()> { "### ); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1290,7 +1291,7 @@ fn install_git_source_dist_cached() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1312,7 +1313,7 @@ fn install_git_source_dist_cached() -> Result<()> { // Re-run the installation in a new virtual environment. context.reset_venv(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1353,7 +1354,7 @@ fn install_git_source_dist_cached() -> Result<()> { "### ); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1383,7 +1384,8 @@ fn install_registry_source_dist_cached() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("source_distribution==0.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1405,7 +1407,8 @@ fn install_registry_source_dist_cached() -> Result<()> { // Re-run the installation in a new virtual environment. context.reset_venv(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--strict") , @r###" @@ -1451,7 +1454,8 @@ fn install_registry_source_dist_cached() -> Result<()> { "### ); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--strict") , @r###" @@ -1491,7 +1495,7 @@ fn install_path_source_dist_cached() -> Result<()> { Url::from_file_path(archive.path()).unwrap() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1513,7 +1517,7 @@ fn install_path_source_dist_cached() -> Result<()> { // Re-run the installation in a new virtual environment. context.reset_venv(); - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1546,7 +1550,7 @@ fn install_path_source_dist_cached() -> Result<()> { "### ); - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1584,7 +1588,7 @@ fn install_path_built_dist_cached() -> Result<()> { let url = Url::from_file_path(archive.path()).unwrap(); requirements_txt.write_str(&format!("tomli @ {url}"))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1604,7 +1608,7 @@ fn install_path_built_dist_cached() -> Result<()> { // Re-run the installation in a new virtual environment. context.reset_venv(); - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1647,7 +1651,7 @@ fn install_path_built_dist_cached() -> Result<()> { "### ); - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1684,7 +1688,7 @@ fn install_url_built_dist_cached() -> Result<()> { } else { context.filters() }; - uv_snapshot!(filters, context.pip_sync_without_exclude_newer() + uv_snapshot!(filters, context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1704,7 +1708,7 @@ fn install_url_built_dist_cached() -> Result<()> { // Re-run the installation in a new virtual environment. context.reset_venv(); - uv_snapshot!(filters, context.pip_sync_without_exclude_newer() + uv_snapshot!(filters, context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1735,7 +1739,7 @@ fn install_url_built_dist_cached() -> Result<()> { "### ); - uv_snapshot!(filters, context.pip_sync_without_exclude_newer() + uv_snapshot!(filters, context.pip_sync() .arg("requirements.txt") .arg("--strict") , @r###" @@ -1764,7 +1768,7 @@ fn duplicate_package_overlap() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\nMarkupSafe==2.1.2")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: false @@ -1788,7 +1792,7 @@ fn duplicate_package_disjoint() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\nMarkupSafe==2.1.2 ; python_version < '3.6'")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1814,7 +1818,7 @@ fn reinstall() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\ntomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1834,7 +1838,7 @@ fn reinstall() -> Result<()> { context.assert_command("import tomli").success(); // Re-run the installation with `--reinstall`. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--strict"), @r###" @@ -1867,7 +1871,7 @@ fn reinstall_package() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\ntomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1887,7 +1891,7 @@ fn reinstall_package() -> Result<()> { context.assert_command("import tomli").success(); // Re-run the installation with `--reinstall`. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall-package") .arg("tomli") @@ -1920,7 +1924,7 @@ fn reinstall_git() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage@b270df1a2fb5d012294e9aaf05e7e0bab1e6a389")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1940,7 +1944,7 @@ fn reinstall_git() -> Result<()> { .success(); // Re-run the installation with `--reinstall`. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall-package") .arg("uv-public-pypackage") @@ -1973,7 +1977,7 @@ fn refresh() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\ntomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -1996,7 +2000,7 @@ fn refresh() -> Result<()> { // latest versions of the packages. context.reset_venv(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--refresh") .arg("--strict") @@ -2028,7 +2032,7 @@ fn refresh_package() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3\ntomli==2.0.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: true @@ -2051,7 +2055,7 @@ fn refresh_package() -> Result<()> { // latest versions of the packages. context.reset_venv(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--refresh-package") .arg("tomli") @@ -2099,7 +2103,7 @@ fn sync_editable() -> Result<()> { })?; // Install the editable packages. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2116,7 +2120,7 @@ fn sync_editable() -> Result<()> { ); // Reinstall the editable packages. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()) .arg("--reinstall-package") .arg("poetry-editable"), @r###" @@ -2167,7 +2171,7 @@ fn sync_editable() -> Result<()> { "}; context.assert_command(check_installed).success(); - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2201,7 +2205,7 @@ fn sync_editable_and_registry() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()) .arg("--strict"), @r###" success: true @@ -2229,7 +2233,7 @@ fn sync_editable_and_registry() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2253,7 +2257,7 @@ fn sync_editable_and_registry() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2272,7 +2276,7 @@ fn sync_editable_and_registry() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()) .arg("--strict"), @r###" success: true @@ -2316,7 +2320,7 @@ fn sync_editable_and_local() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2337,7 +2341,7 @@ fn sync_editable_and_local() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2360,7 +2364,7 @@ fn sync_editable_and_local() -> Result<()> { " })?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()), @r###" success: true exit_code: 0 @@ -2388,7 +2392,7 @@ fn incompatible_wheel() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str(&format!("foo @ {}", wheel.path().simplified_display()))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--strict"), @r###" success: false @@ -2413,7 +2417,7 @@ fn sync_legacy_sdist_pep_517() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("flake8 @ https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -2438,7 +2442,7 @@ fn sync_legacy_sdist_setuptools() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("flake8 @ https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--legacy-setup-py"), @r###" success: true @@ -2469,7 +2473,7 @@ fn find_links() -> Result<()> { werkzeug @ https://files.pythonhosted.org/packages/c3/fc/254c3e9b5feb89ff5b9076a23218dafbc99c96ac5941e900b71206e6313b/werkzeug-3.0.1-py3-none-any.whl "})?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--find-links") .arg(context.workspace_root.join("scripts/links/")), @r###" @@ -2501,7 +2505,7 @@ fn find_links_no_index_match() -> Result<()> { tqdm==1000.0.0 "})?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--no-index") .arg("--find-links") @@ -2531,7 +2535,7 @@ fn find_links_offline_match() -> Result<()> { tqdm==1000.0.0 "})?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--offline") .arg("--find-links") @@ -2562,7 +2566,7 @@ fn find_links_offline_no_match() -> Result<()> { tqdm==1000.0.0 "})?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--offline") .arg("--find-links") @@ -2593,7 +2597,7 @@ fn find_links_wheel_cache() -> Result<()> { "})?; // Install `tqdm`. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--find-links") .arg(context.workspace_root.join("scripts/links/")), @r###" @@ -2610,7 +2614,7 @@ fn find_links_wheel_cache() -> Result<()> { ); // Reinstall `tqdm` with `--reinstall`. Ensure that the wheel is reused. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--find-links") @@ -2643,7 +2647,7 @@ fn find_links_source_cache() -> Result<()> { "})?; // Install `tqdm`. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--find-links") .arg(context.workspace_root.join("scripts/links/")), @r###" @@ -2660,7 +2664,7 @@ fn find_links_source_cache() -> Result<()> { ); // Reinstall `tqdm` with `--reinstall`. Ensure that the wheel is reused. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--find-links") @@ -2689,7 +2693,7 @@ fn offline() -> Result<()> { requirements_in.write_str("black==23.10.1")?; // Install with `--offline` with an empty cache. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--offline"), @r###" success: false @@ -2705,7 +2709,7 @@ fn offline() -> Result<()> { ); // Populate the cache. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -2722,7 +2726,7 @@ fn offline() -> Result<()> { // Install with `--offline` with a populated cache. context.reset_venv(); - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--offline") , @r###" @@ -2750,7 +2754,7 @@ fn compatible_constraint() -> Result<()> { let constraints_txt = context.temp_dir.child("constraints.txt"); constraints_txt.write_str("anyio==3.7.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--constraint") .arg("constraints.txt"), @r###" @@ -2779,7 +2783,7 @@ fn incompatible_constraint() -> Result<()> { let constraints_txt = context.temp_dir.child("constraints.txt"); constraints_txt.write_str("anyio==3.6.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--constraint") .arg("constraints.txt"), @r###" @@ -2806,7 +2810,7 @@ fn irrelevant_constraint() -> Result<()> { let constraints_txt = context.temp_dir.child("constraints.txt"); constraints_txt.write_str("black==23.10.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--constraint") .arg("constraints.txt"), @r###" @@ -2901,7 +2905,7 @@ fn tar_dont_preserve_mtime() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("tomli @ https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt"), @r###" success: true exit_code: 0 @@ -2924,7 +2928,7 @@ fn set_read_permissions() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("databricks==0.2")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -2959,7 +2963,7 @@ fn pip_entrypoints() -> Result<()> { requirements_txt.write_str(pip_requirement)?; context - .pip_sync_without_exclude_newer() + .pip_sync() .arg("requirements.txt") .arg("--strict") .output() @@ -3004,7 +3008,7 @@ requires-python = ">=3.8" let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str(&format!("-e {}", editable_dir.path().display()))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -3019,7 +3023,7 @@ requires-python = ">=3.8" ); // Re-installing should be a no-op. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -3044,7 +3048,7 @@ requires-python = ">=3.8" )?; // Re-installing should update the package. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -3071,7 +3075,7 @@ fn compile() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("MarkupSafe==2.1.3")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--compile") .arg("--strict"), @r###" @@ -3124,7 +3128,7 @@ fn compile_invalid_pyc_invalidation_mode() -> Result<()> { // Retry test if we run into a broken pipe (https://github.com/astral-sh/uv/issues/2672). // TODO(konsti): Why is this happening in the first place? let run_test = || { - let mut command = context.pip_sync_without_exclude_newer(); + let mut command = context.pip_sync(); command .arg("requirements.txt") .arg("--compile") @@ -3181,7 +3185,7 @@ requires-python = "<=3.5" let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str(&format!("-e {}", editable_dir.path().display()))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.in"), @r###" success: false exit_code: 1 @@ -3208,7 +3212,8 @@ fn no_stream() -> Result<()> { requirements_txt .write_str("hashb_foxglove_protocolbuffers_python==25.3.0.1.20240226043130+465630478360")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--index-url") .arg("https://buf.build/gen/python"), @r###" @@ -3251,7 +3256,7 @@ requires-python = "<=3.5" let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str(&format!("example @ {}", editable_dir.path().display()))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.in"), @r###" success: false exit_code: 1 @@ -3277,7 +3282,7 @@ fn require_hashes_unknown_algorithm() -> Result<()> { "anyio==4.0.0 --hash=foo:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f", )?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3301,7 +3306,7 @@ fn require_hashes_missing_hash() -> Result<()> { requirements_txt.write_str("anyio==4.0.0")?; // Install without error when `--require-hashes` is omitted. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt"), @r###" success: true exit_code: 0 @@ -3316,7 +3321,7 @@ fn require_hashes_missing_hash() -> Result<()> { ); // Error when `--require-hashes` is provided. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3422,7 +3427,7 @@ fn require_hashes_wheel_no_binary() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--no-binary") .arg(":all:") @@ -3457,7 +3462,7 @@ fn require_hashes_wheel_only_binary() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--only-binary") .arg(":all:") @@ -3486,7 +3491,8 @@ fn require_hashes_source_no_binary() -> Result<()> { requirements_txt .write_str("source-distribution==0.0.1 --hash=sha256:1f83ed7498336c7f2ab9b002cf22583d91115ebc624053dc4eb3a45694490106")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--no-binary") .arg(":all:") @@ -3515,7 +3521,7 @@ fn require_hashes_source_only_binary() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--only-binary") .arg(":all:") @@ -3550,7 +3556,7 @@ fn require_hashes_wrong_digest() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:afdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3583,7 +3589,7 @@ fn require_hashes_wrong_algorithm() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha512:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3616,7 +3622,7 @@ fn require_hashes_source_url() -> Result<()> { requirements_txt .write_str("source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz --hash=sha256:1f83ed7498336c7f2ab9b002cf22583d91115ebc624053dc4eb3a45694490106")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -3632,7 +3638,7 @@ fn require_hashes_source_url() -> Result<()> { ); // Reinstall with the right hash, and verify that it's reused. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -3654,7 +3660,7 @@ fn require_hashes_source_url() -> Result<()> { requirements_txt .write_str("source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz --hash=sha256:a7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -3686,7 +3692,7 @@ fn require_hashes_source_url_mismatch() -> Result<()> { requirements_txt .write_str("source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz --hash=sha256:a7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3717,7 +3723,7 @@ fn require_hashes_wheel_url() -> Result<()> { requirements_txt .write_str("anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -3733,7 +3739,7 @@ fn require_hashes_wheel_url() -> Result<()> { ); // Reinstall with the right hash, and verify that it's reused. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -3755,7 +3761,7 @@ fn require_hashes_wheel_url() -> Result<()> { requirements_txt .write_str("anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=sha256:afdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -3784,7 +3790,7 @@ fn require_hashes_wheel_url() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:afdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f\niniconfig==2.0.0 --hash=sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -3811,7 +3817,7 @@ fn require_hashes_wheel_url_mismatch() -> Result<()> { requirements_txt .write_str("anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=sha256:afdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3844,7 +3850,7 @@ fn require_hashes_git() -> Result<()> { requirements_txt .write_str("anyio @ git+https://github.com/agronholm/anyio@4a23745badf5bf5ef7928f1e346e9986bd696d82 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3874,7 +3880,7 @@ fn require_hashes_source_tree() -> Result<()> { .display() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -3899,7 +3905,7 @@ fn require_hashes_re_download() -> Result<()> { requirements_txt.write_str("anyio==4.0.0")?; // Install without `--require-hashes`. - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt"), @r###" success: true exit_code: 0 @@ -3918,7 +3924,7 @@ fn require_hashes_re_download() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:afdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -3945,7 +3951,7 @@ fn require_hashes_re_download() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -3979,7 +3985,7 @@ fn require_hashes_wheel_path() -> Result<()> { .display() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -4011,7 +4017,7 @@ fn require_hashes_wheel_path_mismatch() -> Result<()> { .display() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -4049,7 +4055,7 @@ fn require_hashes_source_path() -> Result<()> { .display() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -4081,7 +4087,7 @@ fn require_hashes_source_path_mismatch() -> Result<()> { .display() ))?; - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -4114,7 +4120,7 @@ fn require_hashes_unnamed() -> Result<()> { https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f "} )?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -4145,7 +4151,7 @@ fn require_hashes_editable() -> Result<()> { })?; // Install the editable packages. - uv_snapshot!(context.filters(), context.pip_sync_without_exclude_newer() + uv_snapshot!(context.filters(), context.pip_sync() .arg(requirements_txt.path()) .arg("--require-hashes"), @r###" success: false @@ -4169,7 +4175,7 @@ fn require_hashes_repeated_dependency() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a\nanyio")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -4186,7 +4192,7 @@ fn require_hashes_repeated_dependency() -> Result<()> { requirements_txt .write_str("anyio\nanyio==4.0.0 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: false @@ -4214,7 +4220,7 @@ fn require_hashes_repeated_hash() -> Result<()> { anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f " })?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -4237,7 +4243,7 @@ fn require_hashes_repeated_hash() -> Result<()> { anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=sha512:f30761c1e8725b49c498273b90dba4b05c0fd157811994c806183062cb6647e773364ce45f0e1ff0b10e32fe6d0232ea5ad39476ccf37109d6b49603a09c11c2 " })?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes") .arg("--reinstall"), @r###" @@ -4263,7 +4269,7 @@ fn require_hashes_repeated_hash() -> Result<()> { anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=md5:420d85e19168705cdf0223621b18831a " })?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes") .arg("--reinstall"), @r###" @@ -4289,7 +4295,7 @@ fn require_hashes_repeated_hash() -> Result<()> { anyio @ https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl --hash=md5:520d85e19168705cdf0223621b18831a " })?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes") .arg("--reinstall"), @r###" @@ -4324,7 +4330,7 @@ fn require_hashes_at_least_one() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes"), @r###" success: true @@ -4345,7 +4351,7 @@ fn require_hashes_at_least_one() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a --hash=md5:420d85e19168705cdf0223621b18831a")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -4367,7 +4373,7 @@ fn require_hashes_at_least_one() -> Result<()> { requirements_txt .write_str("anyio==4.0.0 --hash=sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a --hash=md5:1234")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes"), @r###" @@ -4397,7 +4403,7 @@ fn require_hashes_find_links_no_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4419,7 +4425,7 @@ fn require_hashes_find_links_no_hash() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("example-a-961b4c22==1.0.0 --hash=sha256:123")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4449,7 +4455,7 @@ fn require_hashes_find_links_no_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:294e788dbe500fdc39e8b88e82652ab67409a1dc9dd06543d0fe0ae31b713eb3")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4478,7 +4484,7 @@ fn require_hashes_find_links_no_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:294e788dbe500fdc39e8b88e82652ab67409a1dc9dd06543d0fe0ae31b713eb3")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--no-binary") .arg(":all:") @@ -4512,7 +4518,7 @@ fn require_hashes_find_links_valid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--require-hashes") .arg("--find-links") @@ -4541,7 +4547,7 @@ fn require_hashes_find_links_invalid_hash() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("example-a-961b4c22==1.0.0 --hash=sha256:123")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4570,7 +4576,7 @@ fn require_hashes_find_links_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:8838f9d005ff0432b258ba648d9cabb1cbdf06ac29d14f788b02edae544032ea")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4600,7 +4606,7 @@ fn require_hashes_find_links_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4623,7 +4629,7 @@ fn require_hashes_find_links_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--refresh") .arg("--reinstall") @@ -4650,7 +4656,7 @@ fn require_hashes_find_links_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e --hash=sha256:a3cf07a05aac526131a2e8b6e4375ee6c6eaac8add05b88035e960ac6cd999ee")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt") .arg("--refresh") .arg("--reinstall") @@ -4686,7 +4692,8 @@ fn require_hashes_registry_no_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--require-hashes") .arg("--index-url") @@ -4715,7 +4722,8 @@ fn require_hashes_registry_valid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--require-hashes") .arg("--find-links") @@ -4742,7 +4750,8 @@ fn require_hashes_registry_invalid_hash() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("example-a-961b4c22==1.0.0 --hash=sha256:123")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4771,7 +4780,8 @@ fn require_hashes_registry_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:8838f9d005ff0432b258ba648d9cabb1cbdf06ac29d14f788b02edae544032ea")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4801,7 +4811,8 @@ fn require_hashes_registry_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--reinstall") .arg("--require-hashes") @@ -4824,7 +4835,8 @@ fn require_hashes_registry_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--refresh") .arg("--reinstall") @@ -4851,7 +4863,8 @@ fn require_hashes_registry_invalid_hash() -> Result<()> { requirements_txt .write_str("example-a-961b4c22==1.0.0 --hash=sha256:5d69f0b590514103234f0c3526563856f04d044d8d0ea1073a843ae429b3187e --hash=sha256:a3cf07a05aac526131a2e8b6e4375ee6c6eaac8add05b88035e960ac6cd999ee")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() + .env_remove("UV_EXCLUDE_NEWER") .arg("requirements.txt") .arg("--refresh") .arg("--reinstall") @@ -4887,7 +4900,7 @@ fn target_built_distribution() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("iniconfig==2.0.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--target") .arg("target"), @r###" @@ -4922,7 +4935,7 @@ fn target_built_distribution() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("iniconfig==1.1.1")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--target") .arg("target"), @r###" @@ -4943,7 +4956,7 @@ fn target_built_distribution() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("flask")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--target") .arg("target"), @r###" @@ -4956,7 +4969,7 @@ fn target_built_distribution() -> Result<()> { Prepared 1 package in [TIME] Uninstalled 1 package in [TIME] Installed 1 package in [TIME] - + flask==3.0.3 + + flask==3.0.2 - iniconfig==1.1.1 "###); // Ensure that the binary is present in the target directory. @@ -4979,7 +4992,7 @@ fn target_source_distribution() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("iniconfig==2.0.0")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--no-binary") .arg("iniconfig") @@ -5028,7 +5041,7 @@ fn target_no_build_isolation() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("flit_core")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in"), @r###" success: true exit_code: 0 @@ -5045,7 +5058,7 @@ fn target_no_build_isolation() -> Result<()> { let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("wheel")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.in") .arg("--no-build-isolation") .arg("--no-binary") @@ -5157,7 +5170,7 @@ fn preserve_markers() -> Result<()> { let requirements_txt = context.temp_dir.child("requirements.txt"); requirements_txt.write_str("anyio ; python_version > '3.7'")?; - uv_snapshot!(context.pip_sync_without_exclude_newer() + uv_snapshot!(context.pip_sync() .arg("requirements.txt"), @r###" success: true exit_code: 0 @@ -5167,7 +5180,7 @@ fn preserve_markers() -> Result<()> { Resolved 1 package in [TIME] Prepared 1 package in [TIME] Installed 1 package in [TIME] - + anyio==4.4.0 + + anyio==4.3.0 "### ); diff --git a/crates/uv/tests/pip_tree.rs b/crates/uv/tests/pip_tree.rs index 6d0da83aa..88f30118c 100644 --- a/crates/uv/tests/pip_tree.rs +++ b/crates/uv/tests/pip_tree.rs @@ -239,7 +239,8 @@ fn cyclic_dependency() { .write_str("uv-cyclic-dependencies-c") .unwrap(); - let mut command = context.pip_install_without_exclude_newer(); + let mut command = context.pip_install(); + command.env_remove("UV_EXCLUDE_NEWER"); command .arg("-r") .arg("requirements.txt") @@ -501,7 +502,8 @@ fn no_dedupe_and_cycle() { "### ); - let mut command = context.pip_install_without_exclude_newer(); + let mut command = context.pip_install(); + command.env_remove("UV_EXCLUDE_NEWER"); command .arg("uv-cyclic-dependencies-c==0.1.0") .arg("--index-url") diff --git a/scripts/scenarios/templates/compile.mustache b/scripts/scenarios/templates/compile.mustache index 2842d4523..53ab604e4 100644 --- a/scripts/scenarios/templates/compile.mustache +++ b/scripts/scenarios/templates/compile.mustache @@ -31,6 +31,7 @@ fn command(context: &TestContext, python_versions: &[&str]) -> Command { .arg("--find-links") .arg("{{vendor_links}}"); context.add_shared_args(&mut command); + command.env_remove("UV_EXCLUDE_NEWER"); command.env("UV_TEST_PYTHON_PATH", python_path); command diff --git a/scripts/scenarios/templates/install.mustache b/scripts/scenarios/templates/install.mustache index 9b075f37d..fc02d3b7f 100644 --- a/scripts/scenarios/templates/install.mustache +++ b/scripts/scenarios/templates/install.mustache @@ -51,6 +51,7 @@ fn command(context: &TestContext) -> Command { .arg("--find-links") .arg("{{vendor_links}}"); context.add_shared_args(&mut command); + command.env_remove("UV_EXCLUDE_NEWER"); command } diff --git a/scripts/scenarios/templates/lock.mustache b/scripts/scenarios/templates/lock.mustache index b5d89525e..5544fe9cd 100644 --- a/scripts/scenarios/templates/lock.mustache +++ b/scripts/scenarios/templates/lock.mustache @@ -51,7 +51,8 @@ fn {{module_name}}() -> Result<()> { "### )?; - let mut cmd = context.lock_without_exclude_newer(); + let mut cmd = context.lock(); + cmd.env_remove("UV_EXCLUDE_NEWER"); cmd.arg("--index-url").arg("{{index_url}}"); {{#expected.explanation_lines}} // {{.}}