Skip to content

Fix InstalledDistribution's metadata interface #10507

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

Merged
merged 1 commit into from
Sep 26, 2021

Conversation

uranusjr
Copy link
Member

InstallRequirement.satisfied_by is an old-style distribution object (pkg_resources.Distribution) for now, so we need to provide a shim for its access in InstalledDistribution.get_metadata_distribution(). Not sure why this was not picked up by the type checker :/

Fix #10504.

InstallRequirement.satisfied_by is an old-style distribution object
(pkg_resources) for now, so we need to provide a shim for its access in
InstalledDistribution.get_metadata_distribution(). Not sure why this was
not picked up by the type checker :/
@uranusjr uranusjr added this to the 21.3 milestone Sep 26, 2021
@uranusjr uranusjr requested a review from sbidoul September 26, 2021 04:04
Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

Thanks!

@sbidoul sbidoul merged commit 7d28893 into pypa:main Sep 26, 2021
@uranusjr uranusjr deleted the metadata-type-mismatch-satisfied-by branch September 26, 2021 07:22
@@ -0,0 +1,2 @@
Fix a crash when installing an editable requirement using the legacy resolver
Copy link
Member

Choose a reason for hiding this comment

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

Did this ever make it into a release? If not, let’s drop this entry, since there’s no user facing behaviour changes here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Honestly I’m not sure when the breaking change was made, the refactoring dragged for quite a while.

Copy link
Member

Choose a reason for hiding this comment

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

I filed #10523 to remove the news file, as the bug as not present in 21.2

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

21.3 regression with legacy resolver
3 participants