mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
parent
2c214e7585
commit
91e4d880a9
1 changed files with 2 additions and 16 deletions
|
@ -4987,14 +4987,9 @@ fn already_installed_remote_url() {
|
||||||
|
|
||||||
/// Sync using `--find-links` with a local directory.
|
/// Sync using `--find-links` with a local directory.
|
||||||
#[test]
|
#[test]
|
||||||
fn find_links() -> Result<()> {
|
fn find_links() {
|
||||||
let context = TestContext::new("3.12");
|
let context = TestContext::new("3.12");
|
||||||
|
|
||||||
let requirements_txt = context.temp_dir.child("requirements.txt");
|
|
||||||
requirements_txt.write_str(indoc! {r"
|
|
||||||
tqdm
|
|
||||||
"})?;
|
|
||||||
|
|
||||||
uv_snapshot!(context.filters(), context.pip_install()
|
uv_snapshot!(context.filters(), context.pip_install()
|
||||||
.arg("tqdm")
|
.arg("tqdm")
|
||||||
.arg("--find-links")
|
.arg("--find-links")
|
||||||
|
@ -5010,20 +5005,13 @@ fn find_links() -> Result<()> {
|
||||||
+ tqdm==1000.0.0
|
+ tqdm==1000.0.0
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sync using `--find-links` with a local directory, with wheels disabled.
|
/// Sync using `--find-links` with a local directory, with wheels disabled.
|
||||||
#[test]
|
#[test]
|
||||||
fn find_links_no_binary() -> Result<()> {
|
fn find_links_no_binary() {
|
||||||
let context = TestContext::new("3.12");
|
let context = TestContext::new("3.12");
|
||||||
|
|
||||||
let requirements_txt = context.temp_dir.child("requirements.txt");
|
|
||||||
requirements_txt.write_str(indoc! {r"
|
|
||||||
tqdm
|
|
||||||
"})?;
|
|
||||||
|
|
||||||
uv_snapshot!(context.filters(), context.pip_install()
|
uv_snapshot!(context.filters(), context.pip_install()
|
||||||
.arg("tqdm")
|
.arg("tqdm")
|
||||||
.arg("--no-binary")
|
.arg("--no-binary")
|
||||||
|
@ -5041,8 +5029,6 @@ fn find_links_no_binary() -> Result<()> {
|
||||||
+ tqdm==999.0.0
|
+ tqdm==999.0.0
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Provide valid hashes for all dependencies with `--require-hashes`.
|
/// Provide valid hashes for all dependencies with `--require-hashes`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue