Skip to content

feat(pypi): add the extra_dep and extra_select rules - #42

Draft
aignas wants to merge 1 commit into
feat.aignas.target-per-extrafrom
feat.aignas.extras-edges-01-extra-dep-rules
Draft

aignas wants to merge 1 commit into
feat.aignas.target-per-extrafrom
feat.aignas.extras-edges-01-extra-dep-rules

Conversation

@aignas

@aignas aignas commented Nov 22, 2026

Copy link
Copy Markdown
Owner

The extras that a package provides are only known from its METADATA,
which only the whl repository of the package has. Add the extra_dep
and extra_select rules and the private requested_extra build
setting: extra_dep sets the setting on the edge to the extra_select
target of a package, which selects the target of the extra and resets
the setting, so the extras are analyzed in the same configuration as
the rest of the build. Nothing uses the rules yet.

Part of #41. Based on the branch of bazel-contrib#4490.

Work towards bazel-contrib#2786

The rules resolve an extra of a PyPI package in the whl repository that
provides it: extra_dep sets the private requested_extra build setting on
the edge to the extra_select target of the package, which selects the
target of the extra and resets the setting. Nothing uses them yet.

Work towards bazel-contrib#2786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant