-
Notifications
You must be signed in to change notification settings - Fork 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
Make wheel compatibility tag preferences more important than the build tag #9575
Conversation
There's also a few lint issues to be fixed. |
It might be worthwhile to think about / investigate if there's folks doing things in a weird way here (and decide if we need a deprecation cycle here). I don't have any opinions on this, but just flagging this because it feels like a case where we'd create nuanced failures for someone. |
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.
At least one more test (or fixture) is needed to ensure 1.0-1-py3-abi3-linux_x86_64.whl
would be prioritised over 1.0-2-py3-any-none.whl
. This is arguably the more meaningful test to this change; the current test would pass without flipping the sort logic, if I understand correctly.
I seem to recall there was a research on PyPI wheels and basically nobody is using build tags right now. If that’s correct, anybody doing weird things are doing them in private indexes. If past experience of how those people react to similar behavioural changes, I’m pessimistic how effective a deprecation cycle would be. |
9d69bb7
to
b39df0a
Compare
Should I reclassify this a breaking instead of bugfix? |
I believe this is incorrect. I ran the test without the code change and got:
|
done |
I'm pretty sure PyPI disallows wheels containing build tags, so this shouldn't affect PyPI-only users. |
Bias alert: you hear complaints from people who ignored the deprecation until you broke their code but you never hear anything from people who headed your warning and fixed things on their end in time. |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
@hexagonrecursion Could you update this PR? |
8e4e40a
to
e96791f
Compare
Incorporated PR feedback and rebased |
@pradyunsg you have upvoted my comment:
Should I change the news entry from |
Nah, bugfix is fine here. |
Fixes #9565
Example
If linux_x86_64 is preferred over linux_i386 the old behavior was to prefer
Now pip prefers