You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PythonDeps: move cli_only handling logic to _parse_requirements (#2547)
* [test case] tox4: fails to process requirement files with --hash
Add a test case for issue #2373
* Specifying `--hash` in the deps list doesn't work (pip would
reject this anyway).
* Specifying `--hash` in a requirements.txt file named in the deps list
should work, and recursive parsing should correctly extract the hash.
* PythonDeps: move cli_only handling logic to _parse_requirements
Remove `cli_only` parameter from `build_parser`.
Remove special case handling for `--hash` option (only valid in
requirements.txt files, not `pip install`).
Validate options in PythonDeps._parse_requirements:
* Only check "cli_only" logic for ParsedRequirement objects that
directly come from the PythonDeps.
* Allow included requirements.txt lines to correctly parse `--hash` (Fix#2373).
* Provides a more contextual error message to end users when `--hash`
is used in the deps list.
* changelog for issue #2373
0 commit comments