Skip to content

Commit

Permalink
fix SearchScope instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Oct 23, 2022
1 parent 6bedc24 commit 2eb8fd2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions light_the_torch/_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2eb8fd2

Please sign in to comment.