Extract supported requirement file options automatically #7456
Labels
help wanted
For requesting inputs from other members of the community
state: awaiting PR
Feature discussed, PR is needed
type: docs
Documentation related
What's the problem this feature will solve?
Currently the documentation for what options are possible in requirements files are hand-maintained in the docs, but actually enforced in the code. Maintaining the list in both places is error-prone.
Describe the solution you'd like
Automatically extract the supported options from the lists of options in
pip._internal.req.req_file
here.The approach should be similar to what we do for command option help here. We should also make sure to clearly separate the general options, which must be on their own line in a requirements file, from the requirement-specific options, which must be on the same line as a requirement.
Alternative Solutions
Additional context
The text was updated successfully, but these errors were encountered: