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

DM-40803: Change how conda list is run #172

Merged
merged 6 commits into from Sep 18, 2023
Merged

DM-40803: Change how conda list is run #172

merged 6 commits into from Sep 18, 2023

Conversation

timj
Copy link
Member

@timj timj commented Sep 15, 2023

conda.cli.python_api has been deprecated and the suggested replacement is intended solely for test code. Given that the original conda API was using subprocess to run conda list and not using any internal conda APIs, call conda list ourselves.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

conda.cli.python_api has been deprecated and the suggested
replacement is intended solely for test code. Given that the
original conda API was using subprocess to run conda list
and not using any internal conda APIs, call conda list
ourselves.
@timj timj requested a review from erykoff September 15, 2023 17:56
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 68.42% and project coverage change: -0.14% ⚠️

Comparison is base (fba0d86) 94.41% compared to head (ca849d0) 94.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #172      +/-   ##
==========================================
- Coverage   94.41%   94.28%   -0.14%     
==========================================
  Files          46       46              
  Lines        3154     3169      +15     
==========================================
+ Hits         2978     2988      +10     
- Misses        176      181       +5     
Files Changed Coverage Δ
python/lsst/utils/packages.py 88.20% <68.42%> (-1.65%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This has the advantage that no external process is needed.
@timj timj changed the title DM-40803: Run conda list explicitly DM-40803: Change API for running conda list Sep 15, 2023
@timj timj changed the title DM-40803: Change API for running conda list DM-40803: Change how conda list is run Sep 15, 2023
@timj timj merged commit 42b57e1 into main Sep 18, 2023
13 of 15 checks passed
@timj timj deleted the tickets/DM-40803 branch September 18, 2023 21:50
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.

None yet

2 participants