Skip to content

Conversation

@dhellmann
Copy link
Member

Add better logging and exceptions in the resolver code to convey more information about what is happening when no match is found.

Log debug messages for cases like ignoring all candidate files or having no candidates at all.

Use standard ResolverException error types and use messages specific to the different cases for searching for different types of files (sdists or wheels).

Move all of the logic for checking version compatibility into is_satisified_by() method of the base class for more consistent logging via different paths.

@dhellmann dhellmann requested review from rd4398 and tiran April 8, 2025 23:55
@dhellmann dhellmann force-pushed the improve-resolver-error-messages branch from c90abbc to 91097ce Compare April 8, 2025 23:56
Add better logging and exceptions in the resolver code to convey more
information about what is happening when no match is found.

Log info messages for cases like ignoring all candidate files or having
no candidates at all.

Use standard ResolverException error types and use messages specific to
the different cases for searching for different types of files (sdists
or wheels).

Move all of the logic for checking version compatibility into
is_satisified_by() method of the base class for more consistent logging
via different paths.
@dhellmann dhellmann force-pushed the improve-resolver-error-messages branch from 91097ce to fce133c Compare April 9, 2025 12:26
@mergify mergify bot added the ci label Apr 9, 2025
Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@mergify mergify bot merged commit 056f2a8 into python-wheel-build:main Apr 9, 2025
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants