-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when delegated through PathFinder. #116812
gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when delegated through PathFinder. #116812
Conversation
jaraco
commented
Mar 14, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Make MetadataPathFinder a proper classmethod.
- In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches.
- Issue: PathFinder.invalidate_caches should include MetadataPathFinder.invalidate_caches #116811
I guess this change should be backported, since it fixes a missed expectation that the cache invalidation was happening. I don't feel strongly about it, though. |
In order not to have too many open threads, I'm going to merge this, but feel free to comment if you have concerns and we can revisit or roll back if needed. |
Thanks @jaraco for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @jaraco, I could not cleanly backport this to
|
Sorry, @jaraco, I could not cleanly backport this to
|
|
…s reachable when delegated through PathFinder. (pythonGH-116812) * Make MetadataPathFinder a proper classmethod. * In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches. * Add blurb (cherry picked from commit 5f52d20) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
The backports failed due to conflicts created by the introduction of marginally-useful type hints, in this case the |
Investigating the buildbot failure, I see:
and
I suspect these failures are environmental and transient and not caused by this change. |
GH-116864 is a backport of this pull request to the 3.12 branch. |
…s reachable when delegated through PathFinder. (pythonGH-116812) * Make MetadataPathFinder a proper classmethod. * In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches. * Add blurb (cherry picked from commit 5f52d20) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
GH-116865 is a backport of this pull request to the 3.11 branch. |
…hen delegated through PathFinder. (python/cpython#116812) * Make MetadataPathFinder a proper classmethod.
…able when delegated through PathFinder. (python#116812) * Make MetadataPathFinder a proper classmethod. * In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches. * Add blurb
…0.2 to version 7.1.0 Jason R. Coombs (13): gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when delegated through PathFinder. (python/cpython#116812) Add support for python/cpython references Fix test failures on older Pythons with os_helper shim. Copied 'from_test_support' from importlib_resources. Moved compatibility module to compat package. Moved compatibility module to compat package. Remove legacy logic for Python 3.7. Moved compatibility tests to the compat package, as they're not included in CPython. Consolidated test support logic in jaraco.test.cpython. Copy backport of isolated_modules from importlib_resources. Ensure tests do not leak references in sys.modules. Make MetadataPathFinder.find_distributions a classmethod for consistency with CPython. Closes #484. Need to include names from test.support for py312 compat. Finalize Petr Viktorin (1): gh-114107: Fix symlink test if symlinks aren't supported (python/cpython#114108) Shantanu (1): gh-109653: Improve import time of importlib.metadata / email.utils (python/cpython#114664)
…able when delegated through PathFinder. (python#116812) * Make MetadataPathFinder a proper classmethod. * In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches. * Add blurb
…able when delegated through PathFinder. (python#116812) * Make MetadataPathFinder a proper classmethod. * In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches. * Add blurb