-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 pip.list parsing of local packages #63354
Fix pip.list parsing of local packages #63354
Conversation
… when calling pip.list
re-run pr-arch-lts-x86_64-py3-pytest |
re-run pr-windows-2019-x64-py3-pytest |
re-run pr-ubuntu-2004-arm64-py3-pytest |
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.
And, if we drop support for older pip, we don't really need a separate list function(list_freeze_parse
) doe we?
Anyway, let see what the rest of the team thinks about dropping really old pip versions.
@s0undt3ch can you re-review please |
re-run pr-photon-3-x86_64-py3-pytest |
What does this PR do?
See issues for details.
What issues does this PR fix or reference?
Fixes: #58202
Fixes: #60557
Previous Behavior
The previous functionality parsed
pip freeze
output line by line as strings.New Behavior
The new functionality uses
pip list
with JSON output, which allows Salt to parse as a data structure which already has components such as name and version separated.Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.