-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
python_requirements_info: don't overwrite results in 'mismatched' dict key #4078
python_requirements_info: don't overwrite results in 'mismatched' dict key #4078
Conversation
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.
Thanks for your contribution! Could you please add a changelog fragment? Thanks!
Whichever mismatched package is evaluated last is the value stored in the 'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched to keep in line with its documented usage.
8acad96
to
eedeaab
Compare
@felixfontein Done. Thank you! |
Co-authored-by: Felix Fontein <felix@fontein.de>
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.
Looks good! If nobody complains, I'll merge this by the end of this week.
Backport to stable-3: 💚 backport PR created✅ Backport PR branch: Backported as #4110 🤖 @patchback |
@wbh1 thanks for your contribution! |
…t key (#4078) * bugfix: don't overwrite results in 'mismatched' Whichever mismatched package is evaluated last is the value stored in the 'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched to keep in line with its documented usage. * Update changelogs/fragments/4078-python_requirements_info.yaml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 526369a)
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4111 🤖 @patchback |
…t key (#4078) * bugfix: don't overwrite results in 'mismatched' Whichever mismatched package is evaluated last is the value stored in the 'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched to keep in line with its documented usage. * Update changelogs/fragments/4078-python_requirements_info.yaml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 526369a)
…t key (#4078) (#4110) * bugfix: don't overwrite results in 'mismatched' Whichever mismatched package is evaluated last is the value stored in the 'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched to keep in line with its documented usage. * Update changelogs/fragments/4078-python_requirements_info.yaml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 526369a) Co-authored-by: Will Hegedus <will@wbhegedus.me>
…t key (#4078) (#4111) * bugfix: don't overwrite results in 'mismatched' Whichever mismatched package is evaluated last is the value stored in the 'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched to keep in line with its documented usage. * Update changelogs/fragments/4078-python_requirements_info.yaml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 526369a) Co-authored-by: Will Hegedus <will@wbhegedus.me>
SUMMARY
Whichever mismatched package is evaluated last is the value stored in the
'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched
to keep in line with its documented usage and how the
valid
return value is handled.ISSUE TYPE
COMPONENT NAME
python_requirements_info
ADDITIONAL INFORMATION
With
dependencies: ['salt==3003.3', 'jinja2<1']
:Before:
After: