)]}'
{
  "commit": "608ddb75057736f3f47095f5fe300f8a13a98bd0",
  "tree": "c4acd3d9892f607a816d723d8a71de934687b7f1",
  "parents": [
    "e355becc30275939d87116a4ec83dad4bb50d9e1"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "ignas.anikevicius@woven-planet.global",
    "time": "Thu Aug 03 01:16:37 2023 +0900"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Aug 02 16:16:37 2023 +0000"
  },
  "message": "refactor(whl_library): move bazel file generation to Starlark (#1336)\n\nBefore this PR, the `wheel_installer` was doing three things:\n1. Downloading the right wheel.\n2. Extracting it into the output directory.\n3. Generating BUILD.bazel files based on the extracted contents.\n\nThis PR is moving the third part into the `whl_library` repository rule\nand it has the following benefits:\n* We can reduce code duplication and label sanitization functions in\n  rules_python.\n* There are many things that the `wheel_installer` does not care anymore\n  and we don\u0027t need to change less code when extending `whl_library` as\n  we can now do many things in starlark directly.\n* It becomes easier to change the API of how we expose the generated\n  BUILD.bazel patching because we only need to change the Starlark\n  functions.\n\nWork towards #1330.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e8e86331373ab3036b5ff48ecf33cdd2e88d173b",
      "old_mode": 33188,
      "old_path": "python/pip_install/BUILD.bazel",
      "new_id": "179fd622ccc0e4099029c80577358f0c79c4d022",
      "new_mode": 33188,
      "new_path": "python/pip_install/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "99d1fb05b1a9037db66625f229a6ad541b3d7d28",
      "old_mode": 33188,
      "old_path": "python/pip_install/pip_repository.bzl",
      "new_id": "1f392ee6bdd9cb338c57849793946a5eee75c50b",
      "new_mode": 33188,
      "new_path": "python/pip_install/pip_repository.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "229a9178e24d35f513bd2b9f922176c36f948615",
      "new_mode": 33188,
      "new_path": "python/pip_install/private/generate_whl_library_build_bazel.bzl"
    },
    {
      "type": "modify",
      "old_id": "f3064a3aecafe2cd868e56f40ac1d140ec5e8bef",
      "old_mode": 33188,
      "old_path": "python/pip_install/private/srcs.bzl",
      "new_id": "e342d907579c3dc0ff2412c06545690551877d85",
      "new_mode": 33188,
      "new_path": "python/pip_install/private/srcs.bzl"
    },
    {
      "type": "delete",
      "old_id": "37a8b09be28acd03925d36e592574e37b231aa68",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/BUILD.bazel",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "bbdfb4c5881ef24ac5f328dfc70570c44d56f777",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/__init__.py",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "c98008005e2a6d99217e1ddf652e72ff46620e23",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/annotation.py",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "f7c360fbc9881f7b1fe329b5cb5ae07f2189188d",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/annotations_test.py",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "4f56bb702299726c9fc91307cfa4dc44beab59e7",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/annotations_test_helpers.bzl",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "81119e9b5ab5f053ec5e9175590a1232ce09604f",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/bazel.py",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "54bbc46546b4d7edbc416400918de8c0222eff3c",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/wheel_installer/BUILD.bazel",
      "new_id": "6360ca5c7059159d43551e8d4d7912adf38bdc69",
      "new_mode": 33188,
      "new_path": "python/pip_install/tools/wheel_installer/BUILD.bazel"
    },
    {
      "type": "rename",
      "old_id": "974f03cbdd8dc649922f45e70d570283319ba685",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/arguments.py",
      "new_id": "aac3c012b7393b00d09704f344626334ed10c022",
      "new_mode": 33188,
      "new_path": "python/pip_install/tools/wheel_installer/arguments.py",
      "score": 87
    },
    {
      "type": "rename",
      "old_id": "dfa96a890e0a779ed957e1b106c6ebe3967372cd",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/lib/arguments_test.py",
      "new_id": "7193f4a2dccdd4da3fdb48214a700e7cc7a045f3",
      "new_mode": 33188,
      "new_path": "python/pip_install/tools/wheel_installer/arguments_test.py",
      "score": 81
    },
    {
      "type": "modify",
      "old_id": "9b363c306893dfe9d296fa32abc433d509cd6885",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/wheel_installer/wheel_installer.py",
      "new_id": "c6c29615c30e065d4e537f3ce8c5a824a2b8138f",
      "new_mode": 33188,
      "new_path": "python/pip_install/tools/wheel_installer/wheel_installer.py"
    },
    {
      "type": "modify",
      "old_id": "8758b67a1c5aea27de0dcb5367dfb08f4320e273",
      "old_mode": 33188,
      "old_path": "python/pip_install/tools/wheel_installer/wheel_installer_test.py",
      "new_id": "b24e50053f6aa27f5476b372a5fc9ad4267f6c3f",
      "new_mode": 33188,
      "new_path": "python/pip_install/tools/wheel_installer/wheel_installer_test.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "tests/pip_install/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5a27e112dbdb1203d6ff946b9c00576e23ea07d7",
      "new_mode": 33188,
      "new_path": "tests/pip_install/whl_library/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "365233d478fec992700a60544e664677b72cba73",
      "new_mode": 33188,
      "new_path": "tests/pip_install/whl_library/generate_build_bazel_tests.bzl"
    }
  ]
}
