)]}'
{
  "commit": "7a7183c29f35dd81d37e4ac68a1128676dd2ab52",
  "tree": "cf50bd1ef9089f154c8e06deaa9e34ca9752dd89",
  "parents": [
    "ca0a0af8abee29874b1c03a78aba82952b92af87"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Sun Nov 22 04:15:00 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Nov 22 04:15:00 2026 +0000"
  },
  "message": "refactor: do not parse the versions in the files autoloaded by Bazel 8 (#4569)\n\nBazel 8 autoloads the Python rules and providers from `rules_python` and\nthe files that it loads for that can only load `.bzl` files from a fixed\nlist of repositories, otherwise the build fails with `Cycle caused by\nautoloads`. This means that `py_library.bzl` and `py_runtime_rule.bzl`\ncannot use a version parser from a different repository, e.g.\n`pypackaging.bzl`, and they are the reason why `version.bzl` cannot be\nreplaced with it.\n\nNeither of them needs a full PEP 440 parser:\n\n- `py_runtime` only needs the release numbers from the value of the\n  `python_version` flag.\n- `py_library` only compares the versions of the same distribution for\n  equality, so it now uses the version as it is spelled in the name of\n  the `.dist-info` directory, which the installers already normalize.\n\nAdd a test that checks that the autoloaded files only load from the\nrepositories that Bazel allows.",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8fa23f215e0343552208da6b2fb731adc3972672",
      "new_mode": 33188,
      "new_path": "news/dist-info-version-not-normalized.changed.md"
    },
    {
      "type": "modify",
      "old_id": "78e4c48cd2f2a014251cd01b4a8203ccacc4c38f",
      "old_mode": 33188,
      "old_path": "python/private/BUILD.bazel",
      "new_id": "8f43b08a51d3bfa64df8762bef7aafb0741e3d74",
      "new_mode": 33188,
      "new_path": "python/private/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "ead24ec97823eb3ed1f8b77147cfba9c7e8fb3df",
      "old_mode": 33188,
      "old_path": "python/private/py_info.bzl",
      "new_id": "c04cb260837ea617c8cf160e4470e92607394c95",
      "new_mode": 33188,
      "new_path": "python/private/py_info.bzl"
    },
    {
      "type": "modify",
      "old_id": "9b1e064853c07f6e1ddd613b0ab72d7cb6637120",
      "old_mode": 33188,
      "old_path": "python/private/py_library.bzl",
      "new_id": "b92402b8bfe4d7dc90efc07605bcdb8fc84e682c",
      "new_mode": 33188,
      "new_path": "python/private/py_library.bzl"
    },
    {
      "type": "modify",
      "old_id": "4f450c4c9b2cbf0f1d9e4f025641485a75dfaf32",
      "old_mode": 33188,
      "old_path": "python/private/py_runtime_rule.bzl",
      "new_id": "6099d99848c6fe02fed3b5ce62f393a590f9ad01",
      "new_mode": 33188,
      "new_path": "python/private/py_runtime_rule.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a7f2a957893f5b595f33067306569f189e6df762",
      "new_mode": 33188,
      "new_path": "tests/bazel_autoloads/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bcd5ac068c64efdbf1248c13775a84086b35d1d7",
      "new_mode": 33188,
      "new_path": "tests/bazel_autoloads/bazel_autoloads_tests.bzl"
    },
    {
      "type": "modify",
      "old_id": "47cd97f142ef68810bad711eec3dc5abde87d2b1",
      "old_mode": 33188,
      "old_path": "tests/py_runtime/py_runtime_tests.bzl",
      "new_id": "ca16fe33907e83b949d29e463ab9cfb19a1e00e7",
      "new_mode": 33188,
      "new_path": "tests/py_runtime/py_runtime_tests.bzl"
    }
  ]
}
