From 2eb8fd2e93697a3ca13573a043c70cd85b68a1e1 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Sun, 23 Oct 2022 21:57:48 +0200 Subject: [PATCH] fix SearchScope instantiation --- light_the_torch/_patch.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/light_the_torch/_patch.py b/light_the_torch/_patch.py index 4aea39a..0bd3885 100644 --- a/light_the_torch/_patch.py +++ b/light_the_torch/_patch.py @@ -235,7 +235,9 @@ def get_extra_index_urls(computation_backends, channel): @contextlib.contextmanager def patch_link_collection(computation_backends, channel): search_scope = SearchScope( - find_links=[], index_urls=get_extra_index_urls(computation_backends, channel) + find_links=[], + index_urls=get_extra_index_urls(computation_backends, channel), + no_index=False, ) @contextlib.contextmanager @@ -270,7 +272,9 @@ def postprocessing(input, output): # to PyPI. _, pypi_file_source = build_source( SearchScope( - find_links=[], index_urls=["https://pypi.org/simple"] + find_links=[], + index_urls=["https://pypi.org/simple"], + no_index=False, ).get_index_urls_locations(input.project_name)[0], candidates_from_page=input.candidates_from_page, page_validator=input.self.session.is_secure_origin,