Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b081d5c
seam: add hub_builder
aignas Sep 6, 2025
e9e118a
refactor: move error handling
aignas Sep 6, 2025
a2bc653
move get_index_url configuration elsewhere
aignas Sep 6, 2025
8645443
refactor: move interpreter detection to a simple function
aignas Sep 6, 2025
df8d2be
minor: move declaration closer to use
aignas Sep 6, 2025
863243b
refactor: move platform building for the hub to the builder
aignas Sep 6, 2025
7ee62e7
refactor: store the whl_map on the builder itself
aignas Sep 6, 2025
106789f
refactor: store the whl_libraries for each hub in the builder
aignas Sep 6, 2025
76d082e
refactor: get_index_urls early return
aignas Sep 6, 2025
044b004
refactor: add a method for checking if we should use the downloader
aignas Sep 6, 2025
0f83603
refactor: move evaluate_markers fn creation to the builder
aignas Sep 6, 2025
7988d44
minor: code reshuffling
aignas Sep 6, 2025
4e754f7
minor: use hub builder for all hub output storage
aignas Sep 6, 2025
6064ab7
wip
aignas Sep 6, 2025
b9bf362
Revert "wip"
aignas Sep 6, 2025
c8e5304
Revert "minor: use hub builder for all hub output storage"
aignas Sep 6, 2025
f902694
refactor: move group_map to builder
aignas Sep 6, 2025
7f7f635
refactor: move extra aliases to the hub builder
aignas Sep 6, 2025
a636ca6
refactor: move exposed_packages to the hub builder
aignas Sep 6, 2025
62dccd5
seam: add a build function
aignas Sep 6, 2025
5b39b2e
move the create_whl_repos to the builder
aignas Sep 6, 2025
872d0c4
create a pip_parse method in the builder
aignas Sep 6, 2025
2bd0b42
simplify the code base a little
aignas Sep 6, 2025
4628688
eliminate some unnecessary methods
aignas Sep 6, 2025
c283aa3
documnet methods on the builder
aignas Sep 6, 2025
5764570
documnet args on the builder
aignas Sep 6, 2025
46d65b9
fix bzl_library deps
aignas Sep 6, 2025
c69f1a1
refactor: clarify name
aignas Sep 6, 2025
c06b99c
move the construction of the requirement cycles
aignas Sep 6, 2025
b00aff0
refactor: pass whl_overrides differently
aignas Sep 6, 2025
cc2b353
split the whl_library_arg creation
aignas Sep 6, 2025
3427362
Merge branch 'main' into aignas.feat.builder-api-pip-configure
rickeylev Sep 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions python/private/pypi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,17 @@ bzl_library(
name = "extension_bzl",
srcs = ["extension.bzl"],
deps = [
":attrs_bzl",
":evaluate_markers_bzl",
":hub_builder_bzl",
":hub_repository_bzl",
":parse_requirements_bzl",
":parse_whl_name_bzl",
":pep508_env_bzl",
":pip_repository_attrs_bzl",
":python_tag_bzl",
":simpleapi_download_bzl",
":whl_config_setting_bzl",
":whl_library_bzl",
":whl_repo_name_bzl",
"//python/private:full_version_bzl",
"//python/private:auth_bzl",
"//python/private:normalize_name_bzl",
"//python/private:version_bzl",
"//python/private:version_label_bzl",
"//python/private:repo_utils_bzl",
"@bazel_features//:features",
"@pythons_hub//:interpreters_bzl",
"@pythons_hub//:versions_bzl",
Expand Down Expand Up @@ -167,6 +162,27 @@ bzl_library(
],
)

bzl_library(
name = "hub_builder_bzl",
srcs = ["hub_builder.bzl"],
visibility = ["//:__subpackages__"],
deps = [
":attrs_bzl",
":evaluate_markers_bzl",
":parse_requirements_bzl",
":pep508_env_bzl",
":pep508_evaluate_bzl",
":python_tag_bzl",
":requirements_files_by_platform_bzl",
":whl_config_setting_bzl",
":whl_repo_name_bzl",
"//python/private:full_version_bzl",
"//python/private:normalize_name_bzl",
"//python/private:version_bzl",
"//python/private:version_label_bzl",
],
)

bzl_library(
name = "hub_repository_bzl",
srcs = ["hub_repository.bzl"],
Expand Down
Loading