Skip to content

Commit 57aa35d

Browse files
committed
refactor: allow passing simpleapi_download func
1 parent 6642756 commit 57aa35d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/bzlmod/MODULE.bazel.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/private/pypi/extension.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,14 @@ def _create_whl_repos(
319319
whl_map = whl_map,
320320
)
321321

322-
def parse_modules(module_ctx, _fail = fail):
322+
def parse_modules(module_ctx, _fail = fail, simpleapi_download = simpleapi_download):
323323
"""Implementation of parsing the tag classes for the extension and return a struct for registering repositories.
324324
325325
Args:
326326
module_ctx: {type}`module_ctx` module context.
327327
_fail: {type}`function` the failure function, mainly for testing.
328+
simpleapi_download: {type}`function` the function to download from PyPI. See
329+
{obj}`simpleapi_download` for the API docs.
328330
329331
Returns:
330332
A struct with the following attributes:

0 commit comments

Comments
 (0)