-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ENH: Compare environments #10022
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
ENH: Compare environments #10022
Conversation
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @sidhant007. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @sidhant007. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @sidhant007. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @sidhant007. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. It's significant enough I feel I should seek consensus here from other core team members, but I would find this useful
Hi there, thank you for your contribution to Conda! This pull request has been automatically locked since it has not had recent activity after it was closed. Please open a new issue or pull request if needed. |
This PR closes #3781
Added a new CLI command named
compare
as specified in my proposalThis command reports about packages lacking in
myenv
requiredby
.yml` and also identifies if there are version/build string mismatches.The return status code of the command is 0 for success, i.e if all the packages mentioned in
<file>.yml
are present in themyenv
and 1 otherwise.Example to demonstrate the command:
Let the conda env
dummy
have the following packages installed:(Ran
conda list
to print this)And let the
environment.yml
be:Then
conda compare -n dummy environment.yml --json
will print:and returns with exit code 1.
And if we fix these issues (i.e pip install pandas and rectify yaml version), then it prints:
and returns with exit code 0.