mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Use a dedicated message for incompatible Python versions in wheel ABI tags (#8363)
Part of https://github.com/astral-sh/uv/issues/2777 I noticed we're seeing "Python ABI" _a lot_ in error messages which I did not expect. This improves a common case by being a little more specific.
This commit is contained in:
parent
bcc52ed108
commit
fff2094a35
4 changed files with 13 additions and 2 deletions
|
@ -563,7 +563,9 @@ impl VersionMapLazy {
|
|||
// Check if the wheel is compatible with the `requires-python` (i.e., the Python ABI tag
|
||||
// is not less than the `requires-python` minimum version).
|
||||
if !self.requires_python.matches_wheel_tag(filename) {
|
||||
return WheelCompatibility::Incompatible(IncompatibleWheel::Tag(IncompatibleTag::Abi));
|
||||
return WheelCompatibility::Incompatible(IncompatibleWheel::Tag(
|
||||
IncompatibleTag::AbiPythonVersion,
|
||||
));
|
||||
}
|
||||
|
||||
// Break ties with the build tag.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue