Repository navigation
🐛 fix(seed): skip --extra-search-dir entries that are files - #3688
Closed
gaborbernat wants to merge 14 commits into
Closed
gaborbernat wants to merge 14 commits into
gaborbernat wants to merge 14 commits into
Conversation
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Pin the pre-commit hook to [simplint 0.14.2](https://github.com/gaborbernat/simplint/releases/tag/0.14.2). This release starts larger files earlier during parallel checks and sizes cache reads to the archive on disk. Give bare `Final` annotations explicit types across virtualenv, maintenance tasks and tests. The wheel installer also declares its lazy `posixpath` import. Refresh the CodeQL mutant patches for the new annotations. The macOS GraalPy reseeding test timed out while uninstalling pip. Collect each package directory once when cleaning up files from pip's RECORD. The test also uses the existing fixture that keeps coverage out of pip's subprocesses.
A file passed the existence check, then wheel discovery called iterdir() and failed. Keep only directories so a file input is ignored like a missing path. Fixes pypa#3582
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3582.
--extra-search-dirtakes directories containing wheels. Passing a file previously reached wheel discovery, whereiterdir()raisedNotADirectoryErrorand seeding reported a download failure. File paths now get skipped, like missing paths.The seeder filters non-directories before wheel lookup for both app-data and pip seeding. Valid directories remain in the configured search order.
Contributor checklist
tox -e fix)docs/changelog/+short-description.<type>.rstfragment for the user-facing change--extra-search-dirReplaces #3587 after its merge was reverted.