20 Encapsulates the locations that pip is configured to search.
23 __slots__ = [
"find_links",
"index_urls",
"no_index"]
28 find_links: List[str],
29 index_urls: List[str],
33 Create a SearchScope object after normalizing the `find_links`.
40 built_find_links: List[str] = []
41 for link
in find_links:
43 new_link = normalize_path(link)
55 "pip is configured with locations that require "
56 "TLS/SSL, however the ssl module in Python is not "
62 find_links=built_find_links,
63 index_urls=index_urls,
69 find_links: List[str],
70 index_urls: List[str],
79 redacted_index_urls = []
82 redacted_index_url = redact_auth_from_url(url)
94 'The index url "%s" seems invalid, please provide a scheme.',
101 "Looking in indexes: {}".format(
", ".join(redacted_index_urls))
106 "Looking in links: {}".format(
107 ", ".join(redact_auth_from_url(url)
for url
in self.
find_links)
110 return "\n".join(lines)
113 """Returns the locations found via self.index_urls
115 Checks the url_name on the main (first in the list) index and
116 use this url_name to produce all locations
"SearchScope" create(cls, List[str] find_links, List[str] index_urls, bool no_index)
str get_formatted_locations(self)
List[str] get_index_urls_locations(self, str project_name)
None __init__(self, List[str] find_links, List[str] index_urls, bool no_index)