)]}'
{
  "commit": "a0f65fd06b495e9fc7cfcd8e988668f98c0836d1",
  "tree": "1a6c59aa116e03999846abb2efeee4b93cda8b18",
  "parents": [
    "c5b1997f217b7439b1edaf58f156bd800c5227c6"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Sun Nov 22 05:25:40 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Nov 22 05:25:40 2026 +0000"
  },
  "message": "feat(coverage): add a flag to use the coverage package from the requirements (#4433)\n\nAdd the `--@rules_python//python/config_settings:coverage` label flag to\nuse the version of `coverage` that is locked in the requirements, e.g.\n`@pypi//coverage`, for `bazel coverage` without configuring the Python\ntoolchains:\n\n```\ncoverage --@rules_python//python/config_settings:coverage\u003d@pypi//coverage\n```\n\nPreviously, using `coverage` from a `pip.parse` hub required pointing\n`py_runtime.coverage_tool` at it for every Python version and platform,\nand using a `py_library` there creates a dependency cycle with the\ntoolchain.\n\nWhen coverage is collected, the flag target is added to the dependencies\nof `py_binary` and `py_test`, similar to the `debugger` flag, so its\nimports, runfiles and venv symlinks are handled like any other\ndependency, including with `--venvs_site_packages\u003dyes`. The flag is only\nresolved when collecting coverage for the target config, so the\n`coverage` wheel isn\u0027t fetched for regular builds. It is added to the\ntransition settings, so it can be set for a single target via\n`config_settings`. If the flag isn\u0027t set, the `coverage_tool` of the\nPython runtime is used as before.\n\nThe flag target can be a `py_library` that bundles `coverage` with\nplugins and `.coveragerc` files in its `data`. The bootstrap merges\nthose files into the coverage config it writes: options that are lists,\nsuch as `omit` or `exclude_also`, are combined, the other options are\noverridden, and the options that Bazel needs, such as `relative_files`\nand `source`, are always set by `rules_python`.\n\nWork towards #3902\n\n---------\n\nCo-authored-by: Richard Levasseur \u003crichardlev@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "30410badba1a25d7c354e81640c0624a8fc7b8d0",
      "old_mode": 33188,
      "old_path": "dev/pyproject.toml",
      "new_id": "c0136b0059f1b2d856639283279791b5c5b72352",
      "new_mode": 33188,
      "new_path": "dev/pyproject.toml"
    },
    {
      "type": "modify",
      "old_id": "0fefcb0cfd77587fdce2e9038c33d9e175377d63",
      "old_mode": 33188,
      "old_path": "dev/uv.lock",
      "new_id": "4eda8d43d8e02f2e3c447ef0a761dcf1b8a2596e",
      "new_mode": 33188,
      "new_path": "dev/uv.lock"
    },
    {
      "type": "modify",
      "old_id": "b7786865be7cc345e1cb4ca5553aaeda25757ab3",
      "old_mode": 33188,
      "old_path": "docs/api/rules_python/python/config_settings/index.md",
      "new_id": "f3b5a55083139d3d3c09bb85fc42ca95f2fab074",
      "new_mode": 33188,
      "new_path": "docs/api/rules_python/python/config_settings/index.md"
    },
    {
      "type": "modify",
      "old_id": "87a81ea900b76afe81dde6b76e97add833925ad2",
      "old_mode": 33188,
      "old_path": "docs/coverage.md",
      "new_id": "cf7c2faf02af3b6c6266bd8e3c5e979cbe3dd80e",
      "new_mode": 33188,
      "new_path": "docs/coverage.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4a0bfbe687d864a2aa16b772be4af5721250ad6e",
      "new_mode": 33188,
      "new_path": "news/4433.added.md"
    },
    {
      "type": "modify",
      "old_id": "f519a38c2310f643b403244372d21cc5234bccb4",
      "old_mode": 33188,
      "old_path": "python/config_settings/BUILD.bazel",
      "new_id": "5d1de9aa3a350c8b7e3a7118b887b108bb2def3c",
      "new_mode": 33188,
      "new_path": "python/config_settings/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "8f43b08a51d3bfa64df8762bef7aafb0741e3d74",
      "old_mode": 33188,
      "old_path": "python/private/BUILD.bazel",
      "new_id": "ad3a2c2726856cc9c281ca572d607a04e6dab892",
      "new_mode": 33188,
      "new_path": "python/private/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "a3b9b2ac1f889b479f4af42ea8c7a9319d6a825a",
      "old_mode": 33188,
      "old_path": "python/private/common_labels.bzl",
      "new_id": "615e753edfb066fe33b6e654790ad427dfaf1e92",
      "new_mode": 33188,
      "new_path": "python/private/common_labels.bzl"
    },
    {
      "type": "modify",
      "old_id": "46fc52bb5034bc25fbf4822e2c82c2ef9ea9154b",
      "old_mode": 33188,
      "old_path": "python/private/py_executable.bzl",
      "new_id": "c14e74fee5e38eacce463adb3a37cdb918f72756",
      "new_mode": 33188,
      "new_path": "python/private/py_executable.bzl"
    },
    {
      "type": "modify",
      "old_id": "daf01e6c7e82d21a9003d9d30ef65b0310825537",
      "old_mode": 33188,
      "old_path": "python/private/py_runtime_info.bzl",
      "new_id": "c3abe99d8f8868ac388a3bf087b9a8ba1d017e29",
      "new_mode": 33188,
      "new_path": "python/private/py_runtime_info.bzl"
    },
    {
      "type": "modify",
      "old_id": "6099d99848c6fe02fed3b5ce62f393a590f9ad01",
      "old_mode": 33188,
      "old_path": "python/private/py_runtime_rule.bzl",
      "new_id": "21ecd2ae3a36bce8547995321c31acfe1e0ec169",
      "new_mode": 33188,
      "new_path": "python/private/py_runtime_rule.bzl"
    },
    {
      "type": "modify",
      "old_id": "81891bbd52e4c98aa4dc6e85fc13c344ae79ee44",
      "old_mode": 33188,
      "old_path": "python/private/site_init_template.py",
      "new_id": "1c37241b1cbf7a3b31e5adcfb8bd66034124d15d",
      "new_mode": 33188,
      "new_path": "python/private/site_init_template.py"
    },
    {
      "type": "modify",
      "old_id": "1094b36704985f092dc73e6b6b08d3102256d393",
      "old_mode": 33188,
      "old_path": "python/private/stage2_bootstrap_template.py",
      "new_id": "d6662a00c7195ae89d579411571630aa725d2457",
      "new_mode": 33188,
      "new_path": "python/private/stage2_bootstrap_template.py"
    },
    {
      "type": "modify",
      "old_id": "f7a8389ab56e9a9083b2e03ef9538850203b50d7",
      "old_mode": 33188,
      "old_path": "python/private/transition_labels.bzl",
      "new_id": "74f2ec0af0167592fed5bf52d30fe85fe99703c2",
      "new_mode": 33188,
      "new_path": "python/private/transition_labels.bzl"
    },
    {
      "type": "modify",
      "old_id": "6662491bc13b922bf5b6f635e17efccebcdaccf6",
      "old_mode": 33188,
      "old_path": "tests/base_rules/py_executable_base_tests.bzl",
      "new_id": "aa2940cae0208fcd9eed857f8a9f900815eac4f6",
      "new_mode": 33188,
      "new_path": "tests/base_rules/py_executable_base_tests.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "15d0901c07f16f315f650d5f0da4a5d85b5fd710",
      "new_mode": 33188,
      "new_path": "tests/coverage/.coveragerc"
    },
    {
      "type": "modify",
      "old_id": "b578e856574a9d2198865f783366759241e7c480",
      "old_mode": 33188,
      "old_path": "tests/coverage/BUILD.bazel",
      "new_id": "93566323d753288f4cd178a4a3dc126865a94a51",
      "new_mode": 33188,
      "new_path": "tests/coverage/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "00d2af867403a1b95519eea17a4dc1af21420070",
      "new_mode": 33188,
      "new_path": "tests/coverage/base/.coveragerc"
    },
    {
      "type": "modify",
      "old_id": "d44b83bf14efa9121e34daf35a640cbf7b6d8bee",
      "old_mode": 33188,
      "old_path": "tests/coverage/coverage_collection_test.py",
      "new_id": "45fc6f1cd01103f3ffa55071e97feb8e5dae5bcf",
      "new_mode": 33188,
      "new_path": "tests/coverage/coverage_collection_test.py"
    },
    {
      "type": "modify",
      "old_id": "3443fff495758018ea421320fb3fb02523febcbc",
      "old_mode": 33188,
      "old_path": "tests/coverage/lib.py",
      "new_id": "016a30cbf8bccf4bc74835b462fae3eae15c1a0c",
      "new_mode": 33188,
      "new_path": "tests/coverage/lib.py"
    },
    {
      "type": "modify",
      "old_id": "5fd682aaf8da75e52ebcaf35ebf8b63c924c0afd",
      "old_mode": 33188,
      "old_path": "tests/integration/bzlmod_lockfile/MODULE.bazel.lock",
      "new_id": "3fab8f665c700dff7e3975964e4c50fe2b988359",
      "new_mode": 33188,
      "new_path": "tests/integration/bzlmod_lockfile/MODULE.bazel.lock"
    },
    {
      "type": "modify",
      "old_id": "ca16fe33907e83b949d29e463ab9cfb19a1e00e7",
      "old_mode": 33188,
      "old_path": "tests/py_runtime/py_runtime_tests.bzl",
      "new_id": "2b78794f94139e9d6240be3a2d9f60a857ddb3f4",
      "new_mode": 33188,
      "new_path": "tests/py_runtime/py_runtime_tests.bzl"
    }
  ]
}
