Skip to content

Commit

Permalink
rename: python_repositories -> python_repository
Browse files Browse the repository at this point in the history
Signed-off-by: Thulio Ferraz Assis <[email protected]>
  • Loading branch information
f0rmiga committed Feb 10, 2022
1 parent 0d84ae6 commit 7427825
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ _ATTRS = {
"python_version": attr.string(mandatory = True, values = TOOL_VERSIONS.keys() + MINOR_MAPPING.keys()),
}

def _python_repo_impl(rctx):
def _python_repository_impl(rctx):
python_version = rctx.attr.python_version
platform = rctx.attr.platform
release_filename = "cpython-{version}-{platform}-pgo+lto-{release_date}.tar.zst".format(
Expand Down Expand Up @@ -119,8 +119,8 @@ py_runtime_pair(
"python_version": python_version,
}

python_repositories = repository_rule(
_python_repo_impl,
python_repository = repository_rule(
_python_repository_impl,
doc = _DOC,
attrs = dict({
"_zstd_sha256": attr.string(
Expand Down Expand Up @@ -158,7 +158,7 @@ def python_register_toolchains(name, python_version, **kwargs):

for platform in PLATFORMS.keys():
integrity = TOOL_VERSIONS[python_version][platform]
python_repositories(
python_repository(
name = "{name}_{platform}".format(
name = name,
platform = platform,
Expand Down

0 comments on commit 7427825

Please sign in to comment.