xref: /aosp_15_r20/external/bazelbuild-rules_python/examples/bzlmod/description.md (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1*60517a1eSAndroid Build Coastguard WorkerBefore this PR the `coverage_tool` automatically registered by `rules_python`
2*60517a1eSAndroid Build Coastguard Workerwas visible outside the toolchain repository. This fixes it to be consistent
3*60517a1eSAndroid Build Coastguard Workerwith `non-bzlmod` setups and ensures that the default `coverage_tool` is not
4*60517a1eSAndroid Build Coastguard Workervisible outside the toolchain repos.
5*60517a1eSAndroid Build Coastguard Worker
6*60517a1eSAndroid Build Coastguard WorkerThis means that the `MODULE.bazel` file can be cleaned-up at the expense of
7*60517a1eSAndroid Build Coastguard Workerrelaxing the `coverage_tool` attribute for the `python_repository` to be a
8*60517a1eSAndroid Build Coastguard Workersimple string as the label would be evaluated within the context of
9*60517a1eSAndroid Build Coastguard Worker`rules_python` which may not necessarily resolve correctly without the
10*60517a1eSAndroid Build Coastguard Worker`use_repo` statement in our `MODULE.bazel`.
11