-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fix support for the PackageType.VIRTUAL_SYSTEM enum #2923
Fix support for the PackageType.VIRTUAL_SYSTEM enum #2923
Conversation
Note: since some of the linked issues are really old. The commit in conda that introduced the |
Thanks for the PR! I haven't reviewed the changes so far but can you add tests for that reproduce the bugs (in the unfixed version)? |
I am not sure how to craft a minimal reproducer from the linked issues that wouldn't require access to the network and I am not familiar with how you write tests for this project. Would you prefer a minimal unit test? Or an integration test, for instance for the case reported in #1770 using |
Any test is fine really. We have lots of tests that need the network. |
I am having trouble setting up a dev environment for mamba following the instructions found here: https://mamba.readthedocs.io/en/latest/developer_zone/build_locally.html:
EDIT: will comment out line |
@jonashaag I have pushed a test. I am could not get my test setup to actually use my dev Still I think the PR contents is working as intended and hopefully your CI can confirm this. |
Perfect thank you! Would you mind also adding a Linux test? Could be a copy paste or a parameteized test |
@jonashaag I updated the test to parameterize it for Linux and Windows (in addition to macOS). |
Thanks for this ! It should also be backported to the |
Thanks for the fix @ogrisel ! We should fix the build before backporting it. |
Indeed, I hardcoded the use of bash because the tests was originally written only for macOS. Now that it was parameterized for windows, we need to unhardcode the shell. I will do a follow-up PR. |
@jonashaag @AntoinePrv @JohanMabille hopefully #2924 should fix the Windows CI. |
While trying to use conda-lock with the latest conda and mamba on scikit-learn, I got errors due to the use of recently introduced
conda.models.enums.PackageType
.Here is a PR to attempt to fix it while preserving backward compat.
Probably fixes: #2129, #1794, #1770.