Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --prune flag to just filter packages within a name #20

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

jaimergp
Copy link
Member

@jaimergp jaimergp commented Jul 12, 2024

Adds:

  --prune SPEC          Remove the distributions of this package name that do not match the
                        given constraints.

This allows a channel to be created by trimming a package to the required versions only, but leaving the rest of the channel alone. So, if you just want to use python=3.10 in your channel, instead of having to do

... --remove python=3.8 --remove python=3.9 --remove python=3.11 ...

You can do now:

... --prune python=3.10

@jaimergp jaimergp merged commit 59e24bd into main Jul 12, 2024
13 checks passed
@jaimergp jaimergp deleted the versions-within-name branch July 12, 2024 19:33
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.

1 participant