Skip to content

Commit 3b64607

Browse files
committed
snapshots
1 parent 0453ba6 commit 3b64607

4 files changed

Lines changed: 5 additions & 24 deletions

File tree

benchmark/analysis/MODULE.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ module(name = "analysis_benchmark")
55
bazel_dep(name = "aspect_rules_py")
66
local_path_override(
77
module_name = "aspect_rules_py",
8-
path = "../..",
8+
path = "/home/abel/code/rules_py/py_venv/benchmark/analysis/../..",
99
)
1010

1111
bazel_dep(name = "bazel_skylib", version = "1.9.0")
1212
bazel_dep(name = "rules_python", version = "1.9.0")
1313

14+
# Python interpreters provisioned from python-build-standalone via aspect_rules_py
1415
interpreters = use_extension("@aspect_rules_py//py:extensions.bzl", "python_interpreters")
1516
interpreters.toolchain(
1617
python_version = "3.11",
@@ -19,6 +20,7 @@ use_repo(interpreters, "python_interpreters")
1920

2021
register_toolchains("@python_interpreters//:all")
2122

23+
# UV-based PyPI hub used to stress the rules_py analysis extension.
2224
uv = use_extension("@aspect_rules_py//uv:extensions.bzl", "uv")
2325
uv.declare_hub(hub_name = "pypi")
2426
uv.project(

py/private/providers.bzl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -152,26 +152,3 @@ PyVirtualInfo = provider(
152152
"resolutions": "FIXME",
153153
},
154154
)
155-
156-
PyWheelPlanInfo = provider(
157-
doc = """Pre-computed wheel collision plan for a transitive wheel closure.
158-
159-
Emitted by ``py_library`` (and other wheel-carrying rules) so that
160-
downstream ``py_venv`` targets can skip re-running
161-
``resolve_wheel_collisions`` when the wheel set hasn't changed.
162-
163-
Bazel's skyframe analyses each provider-producing target once; when
164-
multiple binaries share the same library dep, the plan is computed
165-
once and reused.
166-
""",
167-
fields = {
168-
"wheel_fingerprints": "tuple[str] — sorted site_packages_rfpaths, for matching",
169-
"top_level_to_site_pkgs": "dict — from resolve_wheel_collisions",
170-
"fully_covered": "dict — from resolve_wheel_collisions",
171-
"console_scripts_map": "dict — from resolve_wheel_collisions",
172-
"merge_groups": "list — from resolve_wheel_collisions",
173-
"tree_by_sp": "dict — from _build_wheel_lookups",
174-
"known_layout": "dict — from _build_wheel_lookups",
175-
"collisions": "list[struct] — recorded collisions for policy enforcement",
176-
},
177-
)

py/private/py_venv/py_venv.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def _common_providers(ctx, shared, executable = None):
167167
bin_python = shared.venv.bin_python,
168168
imports = shared.imports_depset,
169169
transitive_sources = shared.srcs_depset,
170+
all_files = depset(shared.venv.all_files),
170171
),
171172
coverage_common.instrumented_files_info(
172173
ctx,

py/private/py_venv/types.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ binary's launcher exec's the venv's `bin_python`.
1818
"bin_python": "File — the venv's bin/python symlink. Callers needing a launcher target point here.",
1919
"imports": "depset[str] — rlocation-root-relative import paths covered by this venv. Mirrors `PyInfo.imports` of the venv's dep closure.",
2020
"transitive_sources": "depset[File] — first-party Python sources carried by this venv (its own `srcs` plus those of any `deps` that emit `PyInfo`). Surfaced by py_binary as `PyInfo.transitive_sources` so downstream consumers see the same source closure they'd see if srcs/deps lived on the binary directly.",
21+
"all_files": "depset[File] — every file and symlink declared by `assemble_venv`, for snapshot/test consumers that need the full venv output set.",
2122
},
2223
)

0 commit comments

Comments
 (0)