Skip to content

Comments

Add --dry-run flag to uv pip install#1890

Closed
zanieb wants to merge 5 commits intomainfrom
zb/dry-run
Closed

Add --dry-run flag to uv pip install#1890
zanieb wants to merge 5 commits intomainfrom
zb/dry-run

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Feb 23, 2024

Demo for #1436

Comment on lines +786 to +799
.map(|distribution| DryRunEvent {
name: distribution.name().clone(),
version: distribution.version().to_string(),
kind: ChangeEventKind::Removed,
})
.chain(wheels.into_iter().map(|distribution| DryRunEvent {
name: distribution.name().clone(),
version: distribution.version().unwrap().to_string(),
kind: ChangeEventKind::Added,
}))
.chain(local.into_iter().map(|distribution| DryRunEvent {
name: distribution.name().clone(),
version: distribution.installed_version().to_string(),
kind: ChangeEventKind::Added,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of a hack but the best I could come up without really digging around.

@zanieb zanieb closed this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants