Compile requirements.txt from source files. Valid sources are requirements.in, pyproject.toml, setup.cfg, or setup.py specs.
(
ctx: click.Context,
color: bool | None,
verbose: int,
quiet: int,
dry_run: bool,
pre: bool,
rebuild: bool,
extras: tuple[str, ...],
all_extras: bool,
find_links: tuple[str, ...],
index_url: str,
no_index: bool,
extra_index_url: tuple[str, ...],
cert: str | None,
client_cert: str | None,
trusted_host: tuple[str, ...],
header: bool,
emit_trusted_host: bool,
annotate: bool,
annotation_style: str,
upgrade: bool,
upgrade_packages: tuple[str, ...],
output_file: LazyFile | _t.IO[_t.Any] | None,
newline: str,
allow_unsafe: bool,
strip_extras: bool | None,
generate_hashes: bool,
reuse_hashes: bool,
src_files: tuple[str, ...],
max_rounds: int,
build_isolation: bool,
emit_find_links: bool,
cache_dir: str,
pip_args_str: str | None,
resolver_name: str,
emit_index_url: bool,
emit_options: bool,
unsafe_package: tuple[str, ...],
config: Path | None,
no_config: bool,
constraint: tuple[str, ...],
build_deps_targets: tuple[BuildTargetT, ...],
all_build_deps: bool,
only_build_deps: bool,
)
| 124 | @options.all_build_deps |
| 125 | @options.only_build_deps |
| 126 | def cli( |
| 127 | ctx: click.Context, |
| 128 | color: bool | None, |
| 129 | verbose: int, |
| 130 | quiet: int, |
| 131 | dry_run: bool, |
| 132 | pre: bool, |
| 133 | rebuild: bool, |
| 134 | extras: tuple[str, ...], |
| 135 | all_extras: bool, |
| 136 | find_links: tuple[str, ...], |
| 137 | index_url: str, |
| 138 | no_index: bool, |
| 139 | extra_index_url: tuple[str, ...], |
| 140 | cert: str | None, |
| 141 | client_cert: str | None, |
| 142 | trusted_host: tuple[str, ...], |
| 143 | header: bool, |
| 144 | emit_trusted_host: bool, |
| 145 | annotate: bool, |
| 146 | annotation_style: str, |
| 147 | upgrade: bool, |
| 148 | upgrade_packages: tuple[str, ...], |
| 149 | output_file: LazyFile | _t.IO[_t.Any] | None, |
| 150 | newline: str, |
| 151 | allow_unsafe: bool, |
| 152 | strip_extras: bool | None, |
| 153 | generate_hashes: bool, |
| 154 | reuse_hashes: bool, |
| 155 | src_files: tuple[str, ...], |
| 156 | max_rounds: int, |
| 157 | build_isolation: bool, |
| 158 | emit_find_links: bool, |
| 159 | cache_dir: str, |
| 160 | pip_args_str: str | None, |
| 161 | resolver_name: str, |
| 162 | emit_index_url: bool, |
| 163 | emit_options: bool, |
| 164 | unsafe_package: tuple[str, ...], |
| 165 | config: Path | None, |
| 166 | no_config: bool, |
| 167 | constraint: tuple[str, ...], |
| 168 | build_deps_targets: tuple[BuildTargetT, ...], |
| 169 | all_build_deps: bool, |
| 170 | only_build_deps: bool, |
| 171 | ) -> None: |
| 172 | """ |
| 173 | Compile requirements.txt from source files. |
| 174 | |
| 175 | Valid sources are requirements.in, pyproject.toml, setup.cfg, |
| 176 | or setup.py specs. |
| 177 | """ |
| 178 | if color is not None: |
| 179 | ctx.color = color |
| 180 | log.verbosity = verbose - quiet |
| 181 | |
| 182 | # If ``src-files` was not provided as an input, but rather as config, |
| 183 | # it will be part of the click context ``ctx``. |
nothing calls this directly
no test coverage detected