10000 refactor: move python/repositories.bzl implementation under python/pr… · WillMorrison/rules_python@e722d07 · GitHub
[go: up one dir, main page]

Skip to content

Commit e722d07

Browse files
authored
refactor: move python/repositories.bzl implementation under python/private (bazel-contrib#2083)
This is mostly for consistency with other code, but in doing so, it looks like there are several symbols that have public visibility that _probably_ weren't meant to be public. Cleaning that up is left for another PR in the future.
1 parent 90baa6b commit e722d07

File tree

5 files changed

+773
-727
lines changed

5 files changed

+773
-727
lines changed

python/BUILD.bazel

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,7 @@ bzl_library(
211211
name = "repositories_bzl",
212212
srcs = ["repositories.bzl"],
213213
deps = [
214-
":versions_bzl",
215-
"//python/private:auth_bzl",
216-
"//python/private:bazel_tools_bzl",
217-
"//python/private:bzlmod_enabled_bzl",
218-
"//python/private:coverage_deps_bzl",
219-
"//python/private:full_version_bzl",
220-
"//python/private:internal_config_repo_bzl",
221-
"//python/private:repo_utils_bzl",
222-
"//python/private:toolchains_repo_bzl",
223-
"//python/private/pypi:deps_bzl",
214+
"//python/private:python_repositories_bzl",
224215
],
225216
)
226217

python/private/BUILD.bazel

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,23 @@ bzl_library(
139139
],
140140
)
141141

142+
bzl_library(
143+
name = "python_repositories_bzl",
144+
srcs = ["python_repositories.bzl"],
145+
deps = [
146+
"//python:versions_bzl",
147+
"//python/private:auth_bzl",
148+
"//python/private:bazel_tools_bzl",
149+
"//python/private:bzlmod_enabled_bzl",
150+
"//python/private:coverage_deps_bzl",
151+
"//python/private:full_version_bzl",
152+
"//python/private:internal_config_repo_bzl",
153+
"//python/private:repo_utils_bzl",
154+
"//python/private:toolchains_repo_bzl",
155+
"//python/private/pypi:deps_bzl",
156+
],
157+
)
158+
142159
bzl_library(
143160
name = "pythons_hub_bzl",
144161
srcs = ["pythons_hub.bzl"],

python/private/pypi/whl_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
""
1616

17-
load("//python:repositories.bzl", "is_standalone_interpreter")
1817
load("//python/private:auth.bzl", "AUTH_ATTRS", "get_auth")
1918
load("//python/private:envsubst.bzl", "envsubst")
19+
load("//python/private:python_repositories.bzl", "is_standalone_interpreter")
2020
load("//python/private:repo_utils.bzl", "REPO_DEBUG_ENV_VAR", "repo_utils")
2121
load(":attrs.bzl", "ATTRS", "use_isolated")
2222
load(":deps.bzl", "all_repo_names")

0 commit comments

Comments
 (0)
0