-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[1.8 backport] inspection: error on unsupported metadata versions #9229
Conversation
Note that this is without the test as it did not apply cleanly; let me know if you want me to try to bring it forward as well. |
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.
I don't see the if dist.metadata_version not in pkginfo.distribution.HEADER_ATTRS
check that's a key piece of #9203. Is that intentionally omitted here?
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.
I haven't manually tested this version with my test harness, but the code LGTM!
Previously, when processing wheel files, PackageInfo incorrectly returned an empty instance. This change ensures a PackageInfoError is correctly raised. (cherry picked from commit 23612d4)
Resolves: python-poetry#9195 (cherry picked from commit 2a2abce)
I thought this would be nice just to help people debug things in the future. (cherry picked from commit 8b9cf46)
d0abffb
to
ebd6a3d
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Backport #9203 to 1.8.
Resolves: #9195
This change also handles a previously unidentified bug. Previously, when processing wheel files,
PackageInfo
incorrectlyreturned an empty instance. This change ensures a
PackageInfoError
is correctly raised. See 36bf325.