-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Improve handling of wheels with invalid versions #10945
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
Conversation
bfab215
to
f58de94
Compare
I'm not too keen on adding extensive tests here, but feel free to ask for more if you'd like them! :) |
f58de94
to
49b8a2b
Compare
Instead of immediately turning the behaviour into a failure, this deprecates all the invalid wheel combinations; presenting a deprecation warning with a deadline. These conditionals can later be simplified to remove the `is_file` checks and only have the assertions/errors, dropping all the branches that call `deprecated`.
49b8a2b
to
e542847
Compare
f"Got an name mismatch in wheel ({name} != {wheel_name}) " | ||
f"for {wheel.filename}, which is not permitted " | ||
"as per the wheel specification." | ||
), |
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.
We should also mention which one pip is going to use.
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.
We have name in there, along with wheel's name.
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.
Yes but we don’t say which one of them we’re going to use as the package’s name in later parts of the installation.
Closing this for now, we can revisit this later. |
Closes #9188