Repository navigation
π fix(pip): accept any --use-feature name in requirement options - #4436
Merged
gaborbernat merged 2 commits intoNov 17, 2026
Merged
Conversation
Doomguy-BFG9000
marked this pull request as draft
November 16, 2026 06:54
Doomguy-BFG9000
marked this pull request as ready for review
November 16, 2026 07:09
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.
--use-featureindepsor a requirements file was checked against a hard-coded list (2020-resolver,fast-deps). Names that pip accepts, such asinprocess-build-depsortruststore, failed during config evaluation before pip ran. The valid names depend on the pip version in the environment, and pip already rejects unknown ones, so tox now passes the name through unchanged.Fixes #4435.
Verification on Windows:
The three new cases fail on
mainwithinvalid choiceand pass with the change.pytest tests/tox_env/python/pippasses on Python 3.11 (369 passed, 20 skipped). The two touched test files also pass on Python 3.12.A project with
--use-feature=truststoreinrequirements.txtnow completestox r -e py.ruff check,ruff format --check,simplint,codespellanddocstrfmtpass on the changed files at the pinned versions. The fulltox -e fixand Python 3.15 were not run locally.ran the linter to address style issues (
tox -e fix)wrote descriptive pull request text
ensured there are test(s) validating the fix
added a
docs/changelogfragment for user-facing changes, or appliedskip newsupdated/extended the documentation
ran tests on Python 3.11 and 3.15 (
tox run -e 3.11,3.15)linked upstream issues beside any temporary interpreter overrides
kept the PR in draft until CI passes