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

Make new resolver process Requires-Python before other dependencies #13160

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ichard26
Copy link
Member

Revived version of #11398.

Closes #11398.
Fixes #13146.
Fixes #11142.

@ichard26 ichard26 added C: dependency resolution About choosing which dependencies to install type: performance Commands take too long to run labels Jan 12, 2025
@ichard26 ichard26 requested a review from uranusjr January 12, 2025 18:14
ichard26 and others added 3 commits January 12, 2025 13:14
This avoid an explicit requirement (name @ url) from being prepared too
eagerly when its metadata is not required.

Co-authored-by: Richard Si <[email protected]>
This makes the resolver always inspect Requires-Python first when
checking a candidate's consistency, ensuring that no other candidates
are prepared if the Requires-Python check fails.

Co-authored-by: Richard Si <[email protected]>
@ichard26 ichard26 force-pushed the bug/requires-python branch from 8362096 to b3b468f Compare January 12, 2025 18:14
@ichard26 ichard26 marked this pull request as draft January 12, 2025 18:24
@ichard26
Copy link
Member Author

Ah, other tests are failing. That's why this was a draft earlier. Will take a look sometime later.

@pradyunsg
Copy link
Member

Was this rebased on main?

@ichard26
Copy link
Member Author

image

A little out of date, but new enough where the test suite is up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided C: dependency resolution About choosing which dependencies to install type: performance Commands take too long to run
Projects
None yet
3 participants