mirror of https://github.com/astral-sh/uv
Add missing `--exclude-newer` to executable tests (#1201)
A new version of `platformdirs` came out, which broke these.
This commit is contained in:
parent
b88b9e1f3d
commit
262f29b558
|
|
@ -976,10 +976,11 @@ fn install_executable() -> Result<()> {
|
||||||
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
||||||
.arg("pip")
|
.arg("pip")
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("pylint==3.0.3")
|
.arg("pylint==3.0.0")
|
||||||
|
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(cache_dir.path())
|
.arg(cache_dir.path())
|
||||||
|
.arg("--exclude-newer")
|
||||||
|
.arg(EXCLUDE_NEWER)
|
||||||
.env("VIRTUAL_ENV", venv.as_os_str())
|
.env("VIRTUAL_ENV", venv.as_os_str())
|
||||||
.current_dir(&temp_dir), @r###"
|
.current_dir(&temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
|
|
@ -990,12 +991,12 @@ fn install_executable() -> Result<()> {
|
||||||
Resolved 7 packages in [TIME]
|
Resolved 7 packages in [TIME]
|
||||||
Downloaded 7 packages in [TIME]
|
Downloaded 7 packages in [TIME]
|
||||||
Installed 7 packages in [TIME]
|
Installed 7 packages in [TIME]
|
||||||
+ astroid==3.0.2
|
+ astroid==3.0.1
|
||||||
+ dill==0.3.8
|
+ dill==0.3.7
|
||||||
+ isort==5.13.2
|
+ isort==5.12.0
|
||||||
+ mccabe==0.7.0
|
+ mccabe==0.7.0
|
||||||
+ platformdirs==4.1.0
|
+ platformdirs==4.0.0
|
||||||
+ pylint==3.0.3
|
+ pylint==3.0.0
|
||||||
+ tomlkit==0.12.3
|
+ tomlkit==0.12.3
|
||||||
"###);
|
"###);
|
||||||
});
|
});
|
||||||
|
|
@ -1021,12 +1022,13 @@ fn install_executable_copy() -> Result<()> {
|
||||||
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
||||||
.arg("pip")
|
.arg("pip")
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("pylint==3.0.3")
|
.arg("pylint==3.0.0")
|
||||||
.arg("--link-mode")
|
.arg("--link-mode")
|
||||||
.arg("copy")
|
.arg("copy")
|
||||||
|
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(cache_dir.path())
|
.arg(cache_dir.path())
|
||||||
|
.arg("--exclude-newer")
|
||||||
|
.arg(EXCLUDE_NEWER)
|
||||||
.env("VIRTUAL_ENV", venv.as_os_str())
|
.env("VIRTUAL_ENV", venv.as_os_str())
|
||||||
.current_dir(&temp_dir), @r###"
|
.current_dir(&temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
|
|
@ -1037,12 +1039,12 @@ fn install_executable_copy() -> Result<()> {
|
||||||
Resolved 7 packages in [TIME]
|
Resolved 7 packages in [TIME]
|
||||||
Downloaded 7 packages in [TIME]
|
Downloaded 7 packages in [TIME]
|
||||||
Installed 7 packages in [TIME]
|
Installed 7 packages in [TIME]
|
||||||
+ astroid==3.0.2
|
+ astroid==3.0.1
|
||||||
+ dill==0.3.8
|
+ dill==0.3.7
|
||||||
+ isort==5.13.2
|
+ isort==5.12.0
|
||||||
+ mccabe==0.7.0
|
+ mccabe==0.7.0
|
||||||
+ platformdirs==4.1.0
|
+ platformdirs==4.0.0
|
||||||
+ pylint==3.0.3
|
+ pylint==3.0.0
|
||||||
+ tomlkit==0.12.3
|
+ tomlkit==0.12.3
|
||||||
"###);
|
"###);
|
||||||
});
|
});
|
||||||
|
|
@ -1068,11 +1070,13 @@ fn install_executable_hardlink() -> Result<()> {
|
||||||
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
||||||
.arg("pip")
|
.arg("pip")
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("pylint==3.0.3")
|
.arg("pylint==3.0.0")
|
||||||
.arg("--link-mode")
|
.arg("--link-mode")
|
||||||
.arg("hardlink")
|
.arg("hardlink")
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(cache_dir.path())
|
.arg(cache_dir.path())
|
||||||
|
.arg("--exclude-newer")
|
||||||
|
.arg(EXCLUDE_NEWER)
|
||||||
.env("VIRTUAL_ENV", venv.as_os_str())
|
.env("VIRTUAL_ENV", venv.as_os_str())
|
||||||
.current_dir(&temp_dir), @r###"
|
.current_dir(&temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
|
|
@ -1083,12 +1087,12 @@ fn install_executable_hardlink() -> Result<()> {
|
||||||
Resolved 7 packages in [TIME]
|
Resolved 7 packages in [TIME]
|
||||||
Downloaded 7 packages in [TIME]
|
Downloaded 7 packages in [TIME]
|
||||||
Installed 7 packages in [TIME]
|
Installed 7 packages in [TIME]
|
||||||
+ astroid==3.0.2
|
+ astroid==3.0.1
|
||||||
+ dill==0.3.8
|
+ dill==0.3.7
|
||||||
+ isort==5.13.2
|
+ isort==5.12.0
|
||||||
+ mccabe==0.7.0
|
+ mccabe==0.7.0
|
||||||
+ platformdirs==4.1.0
|
+ platformdirs==4.0.0
|
||||||
+ pylint==3.0.3
|
+ pylint==3.0.0
|
||||||
+ tomlkit==0.12.3
|
+ tomlkit==0.12.3
|
||||||
"###);
|
"###);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue