-
Notifications
You must be signed in to change notification settings - Fork 928
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow non-registry dependencies in
uv pip list --outdated
(#8939)
## Summary Closes #8926.
- Loading branch information
1 parent
7835ce0
commit 0b4e5cf
Showing
2 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,48 @@ fn list_outdated_freeze() { | |
); | ||
} | ||
|
||
#[test] | ||
fn list_outdated_git() -> Result<()> { | ||
let context = TestContext::new("3.12"); | ||
|
||
let requirements_txt = context.temp_dir.child("requirements.txt"); | ||
requirements_txt.write_str(indoc::indoc! {r" | ||
iniconfig==1.0.0 | ||
uv-public-pypackage @ git+https://github.com/astral-test/[email protected] | ||
"})?; | ||
|
||
uv_snapshot!(context.pip_install() | ||
.arg("-r") | ||
.arg("requirements.txt") | ||
.arg("--strict"), @r###" | ||
success: true | ||
exit_code: 0 | ||
----- stdout ----- | ||
----- stderr ----- | ||
Resolved 2 packages in [TIME] | ||
Prepared 2 packages in [TIME] | ||
Installed 2 packages in [TIME] | ||
+ iniconfig==1.0.0 | ||
+ uv-public-pypackage==0.1.0 (from git+https://github.com/astral-test/uv-public-pypackage@0dacfd662c64cb4ceb16e6cf65a157a8b715b979) | ||
"### | ||
); | ||
|
||
uv_snapshot!(context.pip_list().arg("--outdated"), @r###" | ||
success: true | ||
exit_code: 0 | ||
----- stdout ----- | ||
Package Version Latest Type | ||
--------- ------- ------ ----- | ||
iniconfig 1.0.0 2.0.0 wheel | ||
----- stderr ----- | ||
"### | ||
); | ||
|
||
Ok(()) | ||
} | ||
|
||
#[test] | ||
fn list_editable() { | ||
let context = TestContext::new("3.12"); | ||
|