Skip to content
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

Do not prefer star specified package as though it were a pinned package #13252

Merged

Conversation

notatallshaw
Copy link
Member

@notatallshaw notatallshaw commented Mar 1, 2025

Fixes #13030

This is pretty simple, currently pip prefers pinned requirements, e.g. requests==2.32.2, when resolving so as to follow a path through the requirement graph that does not increase the number of possibilities.

However, the current code considers a requirement like requests==2.* to be pinned, which it is not. This fixes that.

@notatallshaw notatallshaw merged commit 2014c69 into pypa:main Mar 1, 2025
28 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in pip's pinned preference on packages that have a requirement ==N.*
2 participants