Path: blob/main/test/lib/python3.9/site-packages/pip/_internal/cli/cmdoptions.py
4804 views
"""1shared options and groups23The principle here is to define options once, but *not* instantiate them4globally. One reason being that options with action='append' can carry state5between parses. pip parses general options twice internally, and shouldn't6pass on state. To be consistent, all options will follow this design.7"""89# The following comment should be removed at some point in the future.10# mypy: strict-optional=False1112import importlib.util13import logging14import os15import textwrap16from functools import partial17from optparse import SUPPRESS_HELP, Option, OptionGroup, OptionParser, Values18from textwrap import dedent19from typing import Any, Callable, Dict, Optional, Tuple2021from pip._vendor.packaging.utils import canonicalize_name2223from pip._internal.cli.parser import ConfigOptionParser24from pip._internal.exceptions import CommandError25from pip._internal.locations import USER_CACHE_DIR, get_src_prefix26from pip._internal.models.format_control import FormatControl27from pip._internal.models.index import PyPI28from pip._internal.models.target_python import TargetPython29from pip._internal.utils.hashes import STRONG_HASHES30from pip._internal.utils.misc import strtobool3132logger = logging.getLogger(__name__)333435def raise_option_error(parser: OptionParser, option: Option, msg: str) -> None:36"""37Raise an option parsing error using parser.error().3839Args:40parser: an OptionParser instance.41option: an Option instance.42msg: the error text.43"""44msg = f"{option} error: {msg}"45msg = textwrap.fill(" ".join(msg.split()))46parser.error(msg)474849def make_option_group(group: Dict[str, Any], parser: ConfigOptionParser) -> OptionGroup:50"""51Return an OptionGroup object52group -- assumed to be dict with 'name' and 'options' keys53parser -- an optparse Parser54"""55option_group = OptionGroup(parser, group["name"])56for option in group["options"]:57option_group.add_option(option())58return option_group596061def check_install_build_global(62options: Values, check_options: Optional[Values] = None63) -> None:64"""Disable wheels if per-setup.py call options are set.6566:param options: The OptionParser options to update.67:param check_options: The options to check, if not supplied defaults to68options.69"""70if check_options is None:71check_options = options7273def getname(n: str) -> Optional[Any]:74return getattr(check_options, n, None)7576names = ["build_options", "global_options", "install_options"]77if any(map(getname, names)):78control = options.format_control79control.disallow_binaries()80logger.warning(81"Disabling all use of wheels due to the use of --build-option "82"/ --global-option / --install-option.",83)848586def check_dist_restriction(options: Values, check_target: bool = False) -> None:87"""Function for determining if custom platform options are allowed.8889:param options: The OptionParser options.90:param check_target: Whether or not to check if --target is being used.91"""92dist_restriction_set = any(93[94options.python_version,95options.platforms,96options.abis,97options.implementation,98]99)100101binary_only = FormatControl(set(), {":all:"})102sdist_dependencies_allowed = (103options.format_control != binary_only and not options.ignore_dependencies104)105106# Installations or downloads using dist restrictions must not combine107# source distributions and dist-specific wheels, as they are not108# guaranteed to be locally compatible.109if dist_restriction_set and sdist_dependencies_allowed:110raise CommandError(111"When restricting platform and interpreter constraints using "112"--python-version, --platform, --abi, or --implementation, "113"either --no-deps must be set, or --only-binary=:all: must be "114"set and --no-binary must not be set (or must be set to "115":none:)."116)117118if check_target:119if dist_restriction_set and not options.target_dir:120raise CommandError(121"Can not use any platform or abi specific options unless "122"installing via '--target'"123)124125126def _path_option_check(option: Option, opt: str, value: str) -> str:127return os.path.expanduser(value)128129130def _package_name_option_check(option: Option, opt: str, value: str) -> str:131return canonicalize_name(value)132133134class PipOption(Option):135TYPES = Option.TYPES + ("path", "package_name")136TYPE_CHECKER = Option.TYPE_CHECKER.copy()137TYPE_CHECKER["package_name"] = _package_name_option_check138TYPE_CHECKER["path"] = _path_option_check139140141###########142# options #143###########144145help_: Callable[..., Option] = partial(146Option,147"-h",148"--help",149dest="help",150action="help",151help="Show help.",152)153154debug_mode: Callable[..., Option] = partial(155Option,156"--debug",157dest="debug_mode",158action="store_true",159default=False,160help=(161"Let unhandled exceptions propagate outside the main subroutine, "162"instead of logging them to stderr."163),164)165166isolated_mode: Callable[..., Option] = partial(167Option,168"--isolated",169dest="isolated_mode",170action="store_true",171default=False,172help=(173"Run pip in an isolated mode, ignoring environment variables and user "174"configuration."175),176)177178require_virtualenv: Callable[..., Option] = partial(179Option,180"--require-virtualenv",181"--require-venv",182dest="require_venv",183action="store_true",184default=False,185help=(186"Allow pip to only run in a virtual environment; "187"exit with an error otherwise."188),189)190191verbose: Callable[..., Option] = partial(192Option,193"-v",194"--verbose",195dest="verbose",196action="count",197default=0,198help="Give more output. Option is additive, and can be used up to 3 times.",199)200201no_color: Callable[..., Option] = partial(202Option,203"--no-color",204dest="no_color",205action="store_true",206default=False,207help="Suppress colored output.",208)209210version: Callable[..., Option] = partial(211Option,212"-V",213"--version",214dest="version",215action="store_true",216help="Show version and exit.",217)218219quiet: Callable[..., Option] = partial(220Option,221"-q",222"--quiet",223dest="quiet",224action="count",225default=0,226help=(227"Give less output. Option is additive, and can be used up to 3"228" times (corresponding to WARNING, ERROR, and CRITICAL logging"229" levels)."230),231)232233progress_bar: Callable[..., Option] = partial(234Option,235"--progress-bar",236dest="progress_bar",237type="choice",238choices=["on", "off"],239default="on",240help="Specify whether the progress bar should be used [on, off] (default: on)",241)242243log: Callable[..., Option] = partial(244PipOption,245"--log",246"--log-file",247"--local-log",248dest="log",249metavar="path",250type="path",251help="Path to a verbose appending log.",252)253254no_input: Callable[..., Option] = partial(255Option,256# Don't ask for input257"--no-input",258dest="no_input",259action="store_true",260default=False,261help="Disable prompting for input.",262)263264proxy: Callable[..., Option] = partial(265Option,266"--proxy",267dest="proxy",268type="str",269default="",270help="Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.",271)272273retries: Callable[..., Option] = partial(274Option,275"--retries",276dest="retries",277type="int",278default=5,279help="Maximum number of retries each connection should attempt "280"(default %default times).",281)282283timeout: Callable[..., Option] = partial(284Option,285"--timeout",286"--default-timeout",287metavar="sec",288dest="timeout",289type="float",290default=15,291help="Set the socket timeout (default %default seconds).",292)293294295def exists_action() -> Option:296return Option(297# Option when path already exist298"--exists-action",299dest="exists_action",300type="choice",301choices=["s", "i", "w", "b", "a"],302default=[],303action="append",304metavar="action",305help="Default action when a path already exists: "306"(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.",307)308309310cert: Callable[..., Option] = partial(311PipOption,312"--cert",313dest="cert",314type="path",315metavar="path",316help=(317"Path to PEM-encoded CA certificate bundle. "318"If provided, overrides the default. "319"See 'SSL Certificate Verification' in pip documentation "320"for more information."321),322)323324client_cert: Callable[..., Option] = partial(325PipOption,326"--client-cert",327dest="client_cert",328type="path",329default=None,330metavar="path",331help="Path to SSL client certificate, a single file containing the "332"private key and the certificate in PEM format.",333)334335index_url: Callable[..., Option] = partial(336Option,337"-i",338"--index-url",339"--pypi-url",340dest="index_url",341metavar="URL",342default=PyPI.simple_url,343help="Base URL of the Python Package Index (default %default). "344"This should point to a repository compliant with PEP 503 "345"(the simple repository API) or a local directory laid out "346"in the same format.",347)348349350def extra_index_url() -> Option:351return Option(352"--extra-index-url",353dest="extra_index_urls",354metavar="URL",355action="append",356default=[],357help="Extra URLs of package indexes to use in addition to "358"--index-url. Should follow the same rules as "359"--index-url.",360)361362363no_index: Callable[..., Option] = partial(364Option,365"--no-index",366dest="no_index",367action="store_true",368default=False,369help="Ignore package index (only looking at --find-links URLs instead).",370)371372373def find_links() -> Option:374return Option(375"-f",376"--find-links",377dest="find_links",378action="append",379default=[],380metavar="url",381help="If a URL or path to an html file, then parse for links to "382"archives such as sdist (.tar.gz) or wheel (.whl) files. "383"If a local path or file:// URL that's a directory, "384"then look for archives in the directory listing. "385"Links to VCS project URLs are not supported.",386)387388389def trusted_host() -> Option:390return Option(391"--trusted-host",392dest="trusted_hosts",393action="append",394metavar="HOSTNAME",395default=[],396help="Mark this host or host:port pair as trusted, even though it "397"does not have valid or any HTTPS.",398)399400401def constraints() -> Option:402return Option(403"-c",404"--constraint",405dest="constraints",406action="append",407default=[],408metavar="file",409help="Constrain versions using the given constraints file. "410"This option can be used multiple times.",411)412413414def requirements() -> Option:415return Option(416"-r",417"--requirement",418dest="requirements",419action="append",420default=[],421metavar="file",422help="Install from the given requirements file. "423"This option can be used multiple times.",424)425426427def editable() -> Option:428return Option(429"-e",430"--editable",431dest="editables",432action="append",433default=[],434metavar="path/url",435help=(436"Install a project in editable mode (i.e. setuptools "437'"develop mode") from a local project path or a VCS url.'438),439)440441442def _handle_src(option: Option, opt_str: str, value: str, parser: OptionParser) -> None:443value = os.path.abspath(value)444setattr(parser.values, option.dest, value)445446447src: Callable[..., Option] = partial(448PipOption,449"--src",450"--source",451"--source-dir",452"--source-directory",453dest="src_dir",454type="path",455metavar="dir",456default=get_src_prefix(),457action="callback",458callback=_handle_src,459help="Directory to check out editable projects into. "460'The default in a virtualenv is "<venv path>/src". '461'The default for global installs is "<current dir>/src".',462)463464465def _get_format_control(values: Values, option: Option) -> Any:466"""Get a format_control object."""467return getattr(values, option.dest)468469470def _handle_no_binary(471option: Option, opt_str: str, value: str, parser: OptionParser472) -> None:473existing = _get_format_control(parser.values, option)474FormatControl.handle_mutual_excludes(475value,476existing.no_binary,477existing.only_binary,478)479480481def _handle_only_binary(482option: Option, opt_str: str, value: str, parser: OptionParser483) -> None:484existing = _get_format_control(parser.values, option)485FormatControl.handle_mutual_excludes(486value,487existing.only_binary,488existing.no_binary,489)490491492def no_binary() -> Option:493format_control = FormatControl(set(), set())494return Option(495"--no-binary",496dest="format_control",497action="callback",498callback=_handle_no_binary,499type="str",500default=format_control,501help="Do not use binary packages. Can be supplied multiple times, and "502'each time adds to the existing value. Accepts either ":all:" to '503'disable all binary packages, ":none:" to empty the set (notice '504"the colons), or one or more package names with commas between "505"them (no colons). Note that some packages are tricky to compile "506"and may fail to install when this option is used on them.",507)508509510def only_binary() -> Option:511format_control = FormatControl(set(), set())512return Option(513"--only-binary",514dest="format_control",515action="callback",516callback=_handle_only_binary,517type="str",518default=format_control,519help="Do not use source packages. Can be supplied multiple times, and "520'each time adds to the existing value. Accepts either ":all:" to '521'disable all source packages, ":none:" to empty the set, or one '522"or more package names with commas between them. Packages "523"without binary distributions will fail to install when this "524"option is used on them.",525)526527528platforms: Callable[..., Option] = partial(529Option,530"--platform",531dest="platforms",532metavar="platform",533action="append",534default=None,535help=(536"Only use wheels compatible with <platform>. Defaults to the "537"platform of the running system. Use this option multiple times to "538"specify multiple platforms supported by the target interpreter."539),540)541542543# This was made a separate function for unit-testing purposes.544def _convert_python_version(value: str) -> Tuple[Tuple[int, ...], Optional[str]]:545"""546Convert a version string like "3", "37", or "3.7.3" into a tuple of ints.547548:return: A 2-tuple (version_info, error_msg), where `error_msg` is549non-None if and only if there was a parsing error.550"""551if not value:552# The empty string is the same as not providing a value.553return (None, None)554555parts = value.split(".")556if len(parts) > 3:557return ((), "at most three version parts are allowed")558559if len(parts) == 1:560# Then we are in the case of "3" or "37".561value = parts[0]562if len(value) > 1:563parts = [value[0], value[1:]]564565try:566version_info = tuple(int(part) for part in parts)567except ValueError:568return ((), "each version part must be an integer")569570return (version_info, None)571572573def _handle_python_version(574option: Option, opt_str: str, value: str, parser: OptionParser575) -> None:576"""577Handle a provided --python-version value.578"""579version_info, error_msg = _convert_python_version(value)580if error_msg is not None:581msg = "invalid --python-version value: {!r}: {}".format(582value,583error_msg,584)585raise_option_error(parser, option=option, msg=msg)586587parser.values.python_version = version_info588589590python_version: Callable[..., Option] = partial(591Option,592"--python-version",593dest="python_version",594metavar="python_version",595action="callback",596callback=_handle_python_version,597type="str",598default=None,599help=dedent(600"""\601The Python interpreter version to use for wheel and "Requires-Python"602compatibility checks. Defaults to a version derived from the running603interpreter. The version can be specified using up to three dot-separated604integers (e.g. "3" for 3.0.0, "3.7" for 3.7.0, or "3.7.3"). A major-minor605version can also be given as a string without dots (e.g. "37" for 3.7.0).606"""607),608)609610611implementation: Callable[..., Option] = partial(612Option,613"--implementation",614dest="implementation",615metavar="implementation",616default=None,617help=(618"Only use wheels compatible with Python "619"implementation <implementation>, e.g. 'pp', 'jy', 'cp', "620" or 'ip'. If not specified, then the current "621"interpreter implementation is used. Use 'py' to force "622"implementation-agnostic wheels."623),624)625626627abis: Callable[..., Option] = partial(628Option,629"--abi",630dest="abis",631metavar="abi",632action="append",633default=None,634help=(635"Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'. "636"If not specified, then the current interpreter abi tag is used. "637"Use this option multiple times to specify multiple abis supported "638"by the target interpreter. Generally you will need to specify "639"--implementation, --platform, and --python-version when using this "640"option."641),642)643644645def add_target_python_options(cmd_opts: OptionGroup) -> None:646cmd_opts.add_option(platforms())647cmd_opts.add_option(python_version())648cmd_opts.add_option(implementation())649cmd_opts.add_option(abis())650651652def make_target_python(options: Values) -> TargetPython:653target_python = TargetPython(654platforms=options.platforms,655py_version_info=options.python_version,656abis=options.abis,657implementation=options.implementation,658)659660return target_python661662663def prefer_binary() -> Option:664return Option(665"--prefer-binary",666dest="prefer_binary",667action="store_true",668default=False,669help="Prefer older binary packages over newer source packages.",670)671672673cache_dir: Callable[..., Option] = partial(674PipOption,675"--cache-dir",676dest="cache_dir",677default=USER_CACHE_DIR,678metavar="dir",679type="path",680help="Store the cache data in <dir>.",681)682683684def _handle_no_cache_dir(685option: Option, opt: str, value: str, parser: OptionParser686) -> None:687"""688Process a value provided for the --no-cache-dir option.689690This is an optparse.Option callback for the --no-cache-dir option.691"""692# The value argument will be None if --no-cache-dir is passed via the693# command-line, since the option doesn't accept arguments. However,694# the value can be non-None if the option is triggered e.g. by an695# environment variable, like PIP_NO_CACHE_DIR=true.696if value is not None:697# Then parse the string value to get argument error-checking.698try:699strtobool(value)700except ValueError as exc:701raise_option_error(parser, option=option, msg=str(exc))702703# Originally, setting PIP_NO_CACHE_DIR to a value that strtobool()704# converted to 0 (like "false" or "no") caused cache_dir to be disabled705# rather than enabled (logic would say the latter). Thus, we disable706# the cache directory not just on values that parse to True, but (for707# backwards compatibility reasons) also on values that parse to False.708# In other words, always set it to False if the option is provided in709# some (valid) form.710parser.values.cache_dir = False711712713no_cache: Callable[..., Option] = partial(714Option,715"--no-cache-dir",716dest="cache_dir",717action="callback",718callback=_handle_no_cache_dir,719help="Disable the cache.",720)721722no_deps: Callable[..., Option] = partial(723Option,724"--no-deps",725"--no-dependencies",726dest="ignore_dependencies",727action="store_true",728default=False,729help="Don't install package dependencies.",730)731732ignore_requires_python: Callable[..., Option] = partial(733Option,734"--ignore-requires-python",735dest="ignore_requires_python",736action="store_true",737help="Ignore the Requires-Python information.",738)739740no_build_isolation: Callable[..., Option] = partial(741Option,742"--no-build-isolation",743dest="build_isolation",744action="store_false",745default=True,746help="Disable isolation when building a modern source distribution. "747"Build dependencies specified by PEP 518 must be already installed "748"if this option is used.",749)750751check_build_deps: Callable[..., Option] = partial(752Option,753"--check-build-dependencies",754dest="check_build_deps",755action="store_true",756default=False,757help="Check the build dependencies when PEP517 is used.",758)759760761def _handle_no_use_pep517(762option: Option, opt: str, value: str, parser: OptionParser763) -> None:764"""765Process a value provided for the --no-use-pep517 option.766767This is an optparse.Option callback for the no_use_pep517 option.768"""769# Since --no-use-pep517 doesn't accept arguments, the value argument770# will be None if --no-use-pep517 is passed via the command-line.771# However, the value can be non-None if the option is triggered e.g.772# by an environment variable, for example "PIP_NO_USE_PEP517=true".773if value is not None:774msg = """A value was passed for --no-use-pep517,775probably using either the PIP_NO_USE_PEP517 environment variable776or the "no-use-pep517" config file option. Use an appropriate value777of the PIP_USE_PEP517 environment variable or the "use-pep517"778config file option instead.779"""780raise_option_error(parser, option=option, msg=msg)781782# If user doesn't wish to use pep517, we check if setuptools is installed783# and raise error if it is not.784if not importlib.util.find_spec("setuptools"):785msg = "It is not possible to use --no-use-pep517 without setuptools installed."786raise_option_error(parser, option=option, msg=msg)787788# Otherwise, --no-use-pep517 was passed via the command-line.789parser.values.use_pep517 = False790791792use_pep517: Any = partial(793Option,794"--use-pep517",795dest="use_pep517",796action="store_true",797default=None,798help="Use PEP 517 for building source distributions "799"(use --no-use-pep517 to force legacy behaviour).",800)801802no_use_pep517: Any = partial(803Option,804"--no-use-pep517",805dest="use_pep517",806action="callback",807callback=_handle_no_use_pep517,808default=None,809help=SUPPRESS_HELP,810)811812813def _handle_config_settings(814option: Option, opt_str: str, value: str, parser: OptionParser815) -> None:816key, sep, val = value.partition("=")817if sep != "=":818parser.error(f"Arguments to {opt_str} must be of the form KEY=VAL") # noqa819dest = getattr(parser.values, option.dest)820if dest is None:821dest = {}822setattr(parser.values, option.dest, dest)823dest[key] = val824825826config_settings: Callable[..., Option] = partial(827Option,828"--config-settings",829dest="config_settings",830type=str,831action="callback",832callback=_handle_config_settings,833metavar="settings",834help="Configuration settings to be passed to the PEP 517 build backend. "835"Settings take the form KEY=VALUE. Use multiple --config-settings options "836"to pass multiple keys to the backend.",837)838839install_options: Callable[..., Option] = partial(840Option,841"--install-option",842dest="install_options",843action="append",844metavar="options",845help="Extra arguments to be supplied to the setup.py install "846'command (use like --install-option="--install-scripts=/usr/local/'847'bin"). Use multiple --install-option options to pass multiple '848"options to setup.py install. If you are using an option with a "849"directory path, be sure to use absolute path.",850)851852build_options: Callable[..., Option] = partial(853Option,854"--build-option",855dest="build_options",856metavar="options",857action="append",858help="Extra arguments to be supplied to 'setup.py bdist_wheel'.",859)860861global_options: Callable[..., Option] = partial(862Option,863"--global-option",864dest="global_options",865action="append",866metavar="options",867help="Extra global options to be supplied to the setup.py "868"call before the install or bdist_wheel command.",869)870871no_clean: Callable[..., Option] = partial(872Option,873"--no-clean",874action="store_true",875default=False,876help="Don't clean up build directories.",877)878879pre: Callable[..., Option] = partial(880Option,881"--pre",882action="store_true",883default=False,884help="Include pre-release and development versions. By default, "885"pip only finds stable versions.",886)887888disable_pip_version_check: Callable[..., Option] = partial(889Option,890"--disable-pip-version-check",891dest="disable_pip_version_check",892action="store_true",893default=False,894help="Don't periodically check PyPI to determine whether a new version "895"of pip is available for download. Implied with --no-index.",896)897898root_user_action: Callable[..., Option] = partial(899Option,900"--root-user-action",901dest="root_user_action",902default="warn",903choices=["warn", "ignore"],904help="Action if pip is run as a root user. By default, a warning message is shown.",905)906907908def _handle_merge_hash(909option: Option, opt_str: str, value: str, parser: OptionParser910) -> None:911"""Given a value spelled "algo:digest", append the digest to a list912pointed to in a dict by the algo name."""913if not parser.values.hashes:914parser.values.hashes = {}915try:916algo, digest = value.split(":", 1)917except ValueError:918parser.error(919"Arguments to {} must be a hash name " # noqa920"followed by a value, like --hash=sha256:"921"abcde...".format(opt_str)922)923if algo not in STRONG_HASHES:924parser.error(925"Allowed hash algorithms for {} are {}.".format( # noqa926opt_str, ", ".join(STRONG_HASHES)927)928)929parser.values.hashes.setdefault(algo, []).append(digest)930931932hash: Callable[..., Option] = partial(933Option,934"--hash",935# Hash values eventually end up in InstallRequirement.hashes due to936# __dict__ copying in process_line().937dest="hashes",938action="callback",939callback=_handle_merge_hash,940type="string",941help="Verify that the package's archive matches this "942"hash before installing. Example: --hash=sha256:abcdef...",943)944945946require_hashes: Callable[..., Option] = partial(947Option,948"--require-hashes",949dest="require_hashes",950action="store_true",951default=False,952help="Require a hash to check each requirement against, for "953"repeatable installs. This option is implied when any package in a "954"requirements file has a --hash option.",955)956957958list_path: Callable[..., Option] = partial(959PipOption,960"--path",961dest="path",962type="path",963action="append",964help="Restrict to the specified installation path for listing "965"packages (can be used multiple times).",966)967968969def check_list_path_option(options: Values) -> None:970if options.path and (options.user or options.local):971raise CommandError("Cannot combine '--path' with '--user' or '--local'")972973974list_exclude: Callable[..., Option] = partial(975PipOption,976"--exclude",977dest="excludes",978action="append",979metavar="package",980type="package_name",981help="Exclude specified package from the output",982)983984985no_python_version_warning: Callable[..., Option] = partial(986Option,987"--no-python-version-warning",988dest="no_python_version_warning",989action="store_true",990default=False,991help="Silence deprecation warnings for upcoming unsupported Pythons.",992)993994995use_new_feature: Callable[..., Option] = partial(996Option,997"--use-feature",998dest="features_enabled",999metavar="feature",1000action="append",1001default=[],1002choices=["2020-resolver", "fast-deps"],1003help="Enable new functionality, that may be backward incompatible.",1004)10051006use_deprecated_feature: Callable[..., Option] = partial(1007Option,1008"--use-deprecated",1009dest="deprecated_features_enabled",1010metavar="feature",1011action="append",1012default=[],1013choices=[1014"legacy-resolver",1015"backtrack-on-build-failures",1016"html5lib",1017],1018help=("Enable deprecated functionality, that will be removed in the future."),1019)102010211022##########1023# groups #1024##########10251026general_group: Dict[str, Any] = {1027"name": "General Options",1028"options": [1029help_,1030debug_mode,1031isolated_mode,1032require_virtualenv,1033verbose,1034version,1035quiet,1036log,1037no_input,1038proxy,1039retries,1040timeout,1041exists_action,1042trusted_host,1043cert,1044client_cert,1045cache_dir,1046no_cache,1047disable_pip_version_check,1048no_color,1049no_python_version_warning,1050use_new_feature,1051use_deprecated_feature,1052],1053}10541055index_group: Dict[str, Any] = {1056"name": "Package Index Options",1057"options": [1058index_url,1059extra_index_url,1060no_index,1061find_links,1062],1063}106410651066