Skip to content

Commit b5e7ad2

Browse files
authored
Update lock::lock_requires_python not to require Python 3.8 (#13780)
## Summary Update `lock::lock_requires_python` not to require Python 3.8. Fixes #13676 ## Test Plan `cargo test --no-default-features --features git,pypi,python` after removing Python 3.8.
1 parent 290849d commit b5e7ad2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

crates/uv/tests/it/lock.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4297,10 +4297,13 @@ fn lock_requires_python() -> Result<()> {
42974297
});
42984298

42994299
// Validate that attempting to install with an unsupported Python version raises an error.
4300-
let context38 = TestContext::new("3.8").with_filtered_python_sources();
4300+
let context_unsupported = TestContext::new("3.9").with_filtered_python_sources();
43014301

4302-
fs_err::copy(pyproject_toml, context38.temp_dir.join("pyproject.toml"))?;
4303-
fs_err::copy(&lockfile, context38.temp_dir.join("uv.lock"))?;
4302+
fs_err::copy(
4303+
pyproject_toml,
4304+
context_unsupported.temp_dir.join("pyproject.toml"),
4305+
)?;
4306+
fs_err::copy(&lockfile, context_unsupported.temp_dir.join("uv.lock"))?;
43044307

43054308
// Re-run with `--locked`.
43064309
uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###"
@@ -4314,7 +4317,7 @@ fn lock_requires_python() -> Result<()> {
43144317

43154318
// Install from the lockfile.
43164319
// Note we need to disable Python fetches or we'll just download 3.12
4317-
uv_snapshot!(context38.filters(), context38.sync().arg("--frozen").arg("--no-python-downloads"), @r###"
4320+
uv_snapshot!(context_unsupported.filters(), context_unsupported.sync().arg("--frozen").arg("--no-python-downloads"), @r###"
43184321
success: false
43194322
exit_code: 2
43204323
----- stdout -----

0 commit comments

Comments
 (0)