gh-113174: Sync with importlib_metadata 7.0 by jaraco · Pull Request #113175 · python/cpython (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation15 Commits8 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Sync with importlib_metadata 7.0, including improved type annotations, fixed
issue with symlinked packages inpackage_distributions
, addedEntryPoints.__repr__
, introduced thediagnose
script, addedDistribution.origin
property, and removed deprecatedEntryPoint
access by numeric index (tuple behavior).
Will there be docs changes in this PR or another?
Will there be docs changes in this PR or another?
I've added docs in b610b6d. I chose not to mention some of the changes as they seemed incidental enough not to affect most users.
jaraco marked this pull request as ready for review
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this also benefit from an entry in What's New in Python 3.13?
Would this also benefit from an entry in What's New in Python 3.13?
Perhaps. I'd consider mentioning the EntryPoint.__getitem__
removal and new Distribution.origin
property, though I expect most users not to care much. Overall, I'm thinking it'd be more noise than value, so I'll propose not to add anything, but I'd be happy to add something if anyone feels otherwise.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @hugovk that the removal of EntryPoint.__getitem__
should be mentioned in "What's New". It doesn't need to be a prominent mention near the top of the document, but we should try to make sure that all backwards-incompatible changes are mentioned somewhere in that document, in my opinion.
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Today I learned about the syntax (docs). The exclamation point means to ignore EntryPoint because it isn't documented.
Thanks for the review. Merging, but happy to revisit if needed.
jaraco deleted the feature/113174-importlib-metadata-7.0 branch
ryan-duve pushed a commit to ryan-duve/cpython that referenced this pull request
Sync with importlib_metadata 7.0.0
Add blurb
Update docs to reflect changes.
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Add what's new for removed getattr
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
- Add exclamation point, as that seems to be used for other classes.
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
I worked around the problem by enabling SeCreateSymbolicLinkPrivilege for the buildbot user, but ultimately I believe the test should be skipped for users without this privilege set.
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request
Sync with importlib_metadata 7.0.0
Add blurb
Update docs to reflect changes.
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Add what's new for removed getattr
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
- Add exclamation point, as that seems to be used for other classes.
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
aisk pushed a commit to aisk/cpython that referenced this pull request
Sync with importlib_metadata 7.0.0
Add blurb
Update docs to reflect changes.
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Add what's new for removed getattr
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
- Add exclamation point, as that seems to be used for other classes.
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request
Sync with importlib_metadata 7.0.0
Add blurb
Update docs to reflect changes.
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Add what's new for removed getattr
Link datamodel docs for object.getitem
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
- Add exclamation point, as that seems to be used for other classes.
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com