mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
🧹 chore: refactor pip_list function to trim end of joined elements (#2298)
<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary refactor pip_list function to trim end of joined elements fixed: https://github.com/astral-sh/uv/issues/2296 <!-- How was it tested? -->
This commit is contained in:
parent
8a807094e9
commit
ef806dcb6e
2 changed files with 8 additions and 8 deletions
|
@ -111,7 +111,7 @@ pub(crate) fn pip_list(
|
|||
}
|
||||
|
||||
for elems in MultiZip(columns.iter().map(Column::fmt).collect_vec()) {
|
||||
writeln!(printer.stdout(), "{}", elems.join(" "))?;
|
||||
writeln!(printer.stdout(), "{}", elems.join(" ").trim_end())?;
|
||||
}
|
||||
}
|
||||
ListFormat::Json => {
|
||||
|
|
|
@ -84,7 +84,7 @@ fn list_single_no_editable() -> Result<()> {
|
|||
----- stdout -----
|
||||
Package Version
|
||||
---------- -------
|
||||
markupsafe 2.1.3
|
||||
markupsafe 2.1.3
|
||||
|
||||
----- stderr -----
|
||||
"###
|
||||
|
@ -181,9 +181,9 @@ fn list_editable() -> Result<()> {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Package Version Editable project location
|
||||
Package Version Editable project location
|
||||
--------------- ------- ---------------------------------------------------------
|
||||
numpy 1.26.2
|
||||
numpy 1.26.2
|
||||
poetry-editable 0.1.0 [WORKSPACE_DIR]/scripts/editable-installs/poetry_editable
|
||||
|
||||
----- stderr -----
|
||||
|
@ -275,7 +275,7 @@ fn list_editable_only() -> Result<()> {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Package Version Editable project location
|
||||
Package Version Editable project location
|
||||
--------------- ------- ---------------------------------------------------------
|
||||
poetry-editable 0.1.0 [WORKSPACE_DIR]/scripts/editable-installs/poetry_editable
|
||||
|
||||
|
@ -296,7 +296,7 @@ fn list_editable_only() -> Result<()> {
|
|||
----- stdout -----
|
||||
Package Version
|
||||
------- -------
|
||||
numpy 1.26.2
|
||||
numpy 1.26.2
|
||||
|
||||
----- stderr -----
|
||||
"###
|
||||
|
@ -405,7 +405,7 @@ fn list_exclude() -> Result<()> {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Package Version Editable project location
|
||||
Package Version Editable project location
|
||||
--------------- ------- ---------------------------------------------------------
|
||||
poetry-editable 0.1.0 [WORKSPACE_DIR]/scripts/editable-installs/poetry_editable
|
||||
|
||||
|
@ -427,7 +427,7 @@ fn list_exclude() -> Result<()> {
|
|||
----- stdout -----
|
||||
Package Version
|
||||
------- -------
|
||||
numpy 1.26.2
|
||||
numpy 1.26.2
|
||||
|
||||
----- stderr -----
|
||||
"###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue