gh-116608: Apply style and compatibility changes from importlib_metadata. by jaraco · Pull Request #123028 · python/cpython · GitHub
Skip to content

gh-116608: Apply style and compatibility changes from importlib_metadata. - #123028

Merged
jaraco merged 1 commit into
python:mainfrom
jaraco:gh-116608/sync-importlib_metadata
Aug 15, 2024
Merged

jaraco merged 1 commit into
python:mainfrom
jaraco:gh-116608/sync-importlib_metadata

Conversation

@jaraco

@jaraco jaraco commented Aug 14, 2024

Copy link
Copy Markdown
Member

@jaraco

jaraco commented Aug 14, 2024

Copy link
Copy Markdown
Member Author

jaraco added a commit to python/importlib_resources that referenced this pull request Aug 14, 2024
@jaraco jaraco added the needs backport to 3.13 bugs and security fixes label Aug 14, 2024
@jaraco

jaraco commented Aug 15, 2024

Copy link
Copy Markdown
Member Author

Since I believe these changes are largely uncontroversial and I was primarily looking to inform Petr of the changes, and because this PR is blocking another, I'm going to merge it, but happy to continue a review or even back out if needed.

@jaraco
jaraco merged commit e913d2c into python:main Aug 15, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @jaraco for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@jaraco
jaraco deleted the gh-116608/sync-importlib_metadata branch August 15, 2024 19:32
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 15, 2024
…_metadata. (pythonGH-123028)

(cherry picked from commit e913d2c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
@bedevere-app

bedevere-app Bot commented Aug 15, 2024

Copy link
Copy Markdown

GH-123051 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Aug 15, 2024
@jaraco

jaraco commented Aug 15, 2024

Copy link
Copy Markdown
Member Author

I just noticed that "metadata" appears in the commit message. These changes pertain to "resources".

@bedevere-app

bedevere-app Bot commented Aug 15, 2024

Copy link
Copy Markdown

GH-123051 is a backport of this pull request to the 3.13 branch.

jaraco added a commit that referenced this pull request Aug 15, 2024
…b_resources. (GH-123028) (#123051)

gh-116608: Apply style and compatibility changes from importlib_metadata. (GH-123028)
(cherry picked from commit e913d2c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
@encukou

encukou commented Aug 16, 2024

Copy link
Copy Markdown
Member

Well, to me this looks like style fixes that are traditionally avoided in CPython, but it does look harmless.

jaraco added a commit to jaraco/cpython that referenced this pull request Aug 16, 2024
… from importlib_resources. (pythonGH-123028) (python#123051)"

This reverts commit 5ac14ee.

This commit should be re-applied after 3.13.0 final.
jaraco added a commit to jaraco/cpython that referenced this pull request Aug 16, 2024
…nd compatibility changes from importlib_resources. (pythonGH-123028) (python#123051)"

This reverts commit 5ac14ee.

This commit should be re-applied after 3.13.0 final.
jaraco added a commit to jaraco/cpython that referenced this pull request Aug 16, 2024
…pythongh-116608: Apply style and compatibility changes from importlib_resources. (pythonGH-123028) (python#123051)""

This reverts commit 0a058bc.
@bedevere-app

bedevere-app Bot commented Aug 16, 2024

Copy link
Copy Markdown

GH-123074 is a backport of this pull request to the 3.13 branch.

@jaraco

jaraco commented Aug 16, 2024

Copy link
Copy Markdown
Member Author

Well, to me this looks like style fixes that are traditionally avoided in CPython, but it does look harmless.

The problem is that it's untenable given the constraints on the CPython repo to have divergent styles between the CPython implementation and the third-party package. Due to its shared maintenance with other skeleton projects, importlib_resources has a stricter standard for format, types, and lint. There's no VCS metadata to track the differences, so the process of contributing changes from importlib_resources (upstream) to importlib.resources will overwrite any changes that weren't applied upstream. This change does that overwriting so that it's not folded into a subsequent contribution.

@encukou

encukou commented Aug 19, 2024

Copy link
Copy Markdown
Member

Yeah, and from the other side, the custom tooling in importlib_resources makes it harder than it could be to properly contribute to importlib.resources.
I wonder if we should we add importlib.resources to PEP-360, or otherwise make importlib_resources's style requirements, or contribution instructions in general, more discoverable?

@jaraco

jaraco commented Aug 19, 2024

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants