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

fix: PyPI support for env update #3419

Merged
merged 13 commits into from
Sep 5, 2024

Conversation

jjerphan
Copy link
Member

@jjerphan jjerphan commented Aug 29, 2024

Completes #1455.

This factors the logic of the call to pip for the install and update path.

Note that previously the output of pip install was redirected up to the libmambapy helpers' outputs, breaking JSON outputs when --json is specify. The logging level aren't managing the standard output of subprocess for now, and doing this properly probably should be done in another PR. For now, we simply call pip in quiet mode.

@jjerphan jjerphan added the release::bug_fixes For PRs fixing bugs label Aug 29, 2024
@jjerphan jjerphan force-pushed the fix/pip-support-for-env-update branch from 4bc9e04 to 5e46173 Compare August 30, 2024 06:48
@jjerphan jjerphan marked this pull request as ready for review August 30, 2024 06:52
@jjerphan jjerphan force-pushed the fix/pip-support-for-env-update branch from b9cc118 to 6efaf64 Compare August 30, 2024 14:14
libmamba/CMakeLists.txt Show resolved Hide resolved
libmamba/src/api/pip_utils.cpp Outdated Show resolved Hide resolved
@jjerphan jjerphan force-pushed the fix/pip-support-for-env-update branch from 6efaf64 to 42771f2 Compare August 30, 2024 14:55
libmamba/src/api/pip_utils.cpp Outdated Show resolved Hide resolved
micromamba/tests/test_create.py Outdated Show resolved Hide resolved
micromamba/tests/test_create.py Outdated Show resolved Hide resolved
micromamba/tests/test_create.py Outdated Show resolved Hide resolved
@Hind-M
Copy link
Member

Hind-M commented Aug 30, 2024

Can we also add tests to make sure we are behaving like conda env update when mixing conda-forge and pip packages in both orders?

libmamba/src/api/pip_utils.cpp Outdated Show resolved Hide resolved
micromamba/tests/test_env.py Outdated Show resolved Hide resolved
@Hind-M Hind-M marked this pull request as draft September 4, 2024 16:03
jjerphan and others added 13 commits September 5, 2024 09:24
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>

Co-authored-by: Johan Mabille <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>

Co-authored-by: Hind Montassif <[email protected]>
@Hind-M Hind-M force-pushed the fix/pip-support-for-env-update branch from 35a15d1 to 90ad1c3 Compare September 5, 2024 07:26
@Hind-M Hind-M marked this pull request as ready for review September 5, 2024 07:54
@JohanMabille JohanMabille merged commit c4a6e78 into mamba-org:main Sep 5, 2024
32 checks passed
@jjerphan jjerphan deleted the fix/pip-support-for-env-update branch September 5, 2024 13:47
@SylvainCorlay
Copy link
Member

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release::bug_fixes For PRs fixing bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants