)]}'
{
  "commit": "3b44a0a0d72ce7bcf87effeeb4392bc2a8bfdf1d",
  "tree": "0e6b8a2fcf9bb585bf72adc019bb0fdf03e24ef5",
  "parents": [
    "1acd608a0bf9efb240b14dff112bec682a52a8fd"
  ],
  "author": {
    "name": "Stella Laurenzo",
    "email": "stellaraccident@gmail.com",
    "time": "Mon Apr 18 19:57:57 2022 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Apr 18 19:57:57 2022 -0700"
  },
  "message": "Modernize and relocate iree/runtime Python package to runtime/bindings/python. (#8912)\n\n* Modernize and relocate iree/runtime Python package to iree/runtime/python.\r\n\r\nNon-functional changes:\r\n\r\n* Moves `bindings/python/iree/runtime` -\u003e `iree/runtime/python/iree/runtime`.\r\n* Fixes dash vs undescore inconsistency in compile install path. Now both use underscores (python_packages/iree_compiler and python_packages/iree_runtime).\r\n* Moves build directory for iree/compiler/python to iree/compiler/python (was outputting to bindings/python). Updates locations that were hard-coded.\r\n\r\nFunctional changes:\r\n\r\n* Removes the old build-dir only setup.py in favor of an iree/runtime/setup.py that works from either the source or build dir.\r\n* Reworks the releases to use the new setup.py as-is vs scripting the build manually.\r\n* iree.runtime.version is now generated in the same way as iree.compiler.version.\r\n* Users can now run iree/runtime/setup.py with pip themselves to generate a wheel (i.e. `pip wheel iree/runtime`).\r\n\r\nIt is now possible to integrate python package testing into the presubmit and have build jobs that generated Python installable binaries for subsequent steps.\r\n\r\nThe only file left in bindings/python is build_requirements.txt. It is referred to by some docs and CI jobs so leaving as-is for the moment (will find it a new home in a followup).\r\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "75eaf987518a99cd47357964e15170b9bf2d6ac9",
      "old_mode": 33188,
      "old_path": ".github/workflows/build_package.yml",
      "new_id": "2f4a6bcd9cd9f9427f503745865a25eb6e904084",
      "new_mode": 33188,
      "new_path": ".github/workflows/build_package.yml"
    },
    {
      "type": "modify",
      "old_id": "ff9e985467948bec2fd67d60c0c02053f2e225ea",
      "old_mode": 33188,
      "old_path": "CMakeLists.txt",
      "new_id": "3d0b65a1c4a6eca82774cee76de7e25c22a1e197",
      "new_mode": 33188,
      "new_path": "CMakeLists.txt"
    },
    {
      "type": "delete",
      "old_id": "545a8000799b282d95c002d40bec21f4be3cb943",
      "old_mode": 33188,
      "old_path": "bindings/python/CMakeLists.txt",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "9f633c234c75c35985947f59107af42c8e6f309c",
      "old_mode": 33188,
      "old_path": "bindings/python/README.md",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "6518fd4622b2ee8e46e11020d861505ab72e4f93",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/setup.py.in",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "e660b02201f7bbf1509d4bda700eed70ef5b4e49",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/version.py.in",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "18d66b0fb8bf8a3360ec8f7671a83635bfc757bd",
      "old_mode": 33188,
      "old_path": "build_tools/cmake/iree_python.cmake",
      "new_id": "d23c35582ba230fc0b3970489802bf30cdebb9e4",
      "new_mode": 33188,
      "new_path": "build_tools/cmake/iree_python.cmake"
    },
    {
      "type": "modify",
      "old_id": "3e147f291a7ccc1bb70c15fdf160bcb51916578a",
      "old_mode": 33188,
      "old_path": "build_tools/github_actions/README.md",
      "new_id": "c7e9d2507bd9e91728c4d99d76fe786096ac4f26",
      "new_mode": 33188,
      "new_path": "build_tools/github_actions/README.md"
    },
    {
      "type": "modify",
      "old_id": "965779ca10eb099e0ccd13cd010e6560d12d86f8",
      "old_mode": 33188,
      "old_path": "build_tools/github_actions/build_dist.py",
      "new_id": "31d46d1bc46ba056008d8f54a52c6e609ea20a3b",
      "new_mode": 33188,
      "new_path": "build_tools/github_actions/build_dist.py"
    },
    {
      "type": "modify",
      "old_id": "b6c9bb85d9c27710463a266f6d268b00b2fa93b1",
      "old_mode": 33261,
      "old_path": "build_tools/kokoro/gcp_ubuntu/cmake-bazel/linux/x86-swiftshader/build.sh",
      "new_id": "d66655340af404dc440ede40c78e228e389b86a9",
      "new_mode": 33261,
      "new_path": "build_tools/kokoro/gcp_ubuntu/cmake-bazel/linux/x86-swiftshader/build.sh"
    },
    {
      "type": "modify",
      "old_id": "200be0fb343701a45f7b59b047a98ff6c68d2ed4",
      "old_mode": 33261,
      "old_path": "build_tools/kokoro/gcp_ubuntu/cmake-bazel/linux/x86-turing/build.sh",
      "new_id": "6953bbd2409f2f1d8855441a9b7b07e374c6a3a0",
      "new_mode": 33261,
      "new_path": "build_tools/kokoro/gcp_ubuntu/cmake-bazel/linux/x86-turing/build.sh"
    },
    {
      "type": "modify",
      "old_id": "1587cc75ced60aecad3dc2b8730036fc23f0ee8c",
      "old_mode": 33188,
      "old_path": "iree/compiler/API/python/CMakeLists.txt",
      "new_id": "932ca0654fe733cd1a5d00be1b654a88f78d49c4",
      "new_mode": 33188,
      "new_path": "iree/compiler/API/python/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "51564771505c0a391cffc70ca721810e774fad41",
      "old_mode": 33188,
      "old_path": "iree/compiler/setup.py",
      "new_id": "5fd3cdcaed1ba81d27c8c21e75e6804816cf2f22",
      "new_mode": 33188,
      "new_path": "iree/compiler/setup.py"
    },
    {
      "type": "rename",
      "old_id": "1fbfe4c9422e447ecae5b25c86b44b4aceaa7cdb",
      "old_mode": 33188,
      "old_path": "iree/runtime/BUILD",
      "new_id": "1fbfe4c9422e447ecae5b25c86b44b4aceaa7cdb",
      "new_mode": 33188,
      "new_path": "iree/runtime/BUILD.bazel",
      "score": 100
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8a3ce7a1c41bf8589c9b2c3e2acecdafe65169ae",
      "new_mode": 33188,
      "new_path": "runtime/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e3957536bb1fa983dd6e51a558d1da567abd78aa",
      "new_mode": 33188,
      "new_path": "runtime/README.md"
    },
    {
      "type": "rename",
      "old_id": "95cab2efddbef0c74adf4fa0c26822e9171647e3",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/CMakeLists.txt",
      "new_id": "e93f41f7c98722a4ffd3a0345b4dc8cbc3f13b2c",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/CMakeLists.txt",
      "score": 89
    },
    {
      "type": "rename",
      "old_id": "cd21ffe83656ebd2bbe4413d30c617094612e2ba",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/README.md",
      "new_id": "cd21ffe83656ebd2bbe4413d30c617094612e2ba",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/README.md",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "e0d86438c31cd96a90c563298df20d8dd2ec3e42",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/__init__.py",
      "new_id": "e0d86438c31cd96a90c563298df20d8dd2ec3e42",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/__init__.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "d761274dc623fb2f2c9dfcecfff08b414828e9a7",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/array_interop.py",
      "new_id": "d761274dc623fb2f2c9dfcecfff08b414828e9a7",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/array_interop.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "032f2968c694f0e0efc74e8cc1fc55ad208bc00a",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/array_interop_test.py",
      "new_id": "032f2968c694f0e0efc74e8cc1fc55ad208bc00a",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/array_interop_test.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "64240d4bcdfa969250ee74b09c09ad2ca0dd9839",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/binding.h",
      "new_id": "64240d4bcdfa969250ee74b09c09ad2ca0dd9839",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/binding.h",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "24e1f7b9c9937ab35af67a465046fce2c89518ae",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/export.def",
      "new_id": "24e1f7b9c9937ab35af67a465046fce2c89518ae",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/export.def",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "a7b1020ae9bfe4366271308908ec6da97a4c928a",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/flags.py",
      "new_id": "a7b1020ae9bfe4366271308908ec6da97a4c928a",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/flags.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "886176a31f7f3c84cb323aa11cdd9f461950c6a7",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/flags_test.py",
      "new_id": "886176a31f7f3c84cb323aa11cdd9f461950c6a7",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/flags_test.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "40eb89c5e6a090b58e944d052261fb5d33748532",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/function.py",
      "new_id": "40eb89c5e6a090b58e944d052261fb5d33748532",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/function.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "57b84814763299de0788629a50ba956934222a2b",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/function_test.py",
      "new_id": "57b84814763299de0788629a50ba956934222a2b",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/function_test.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "27fc6696720107bf977cfe1cce84be15d71d5293",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/hal.cc",
      "new_id": "1d577a6310346e1b7683babc615cc68299a85ff3",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/hal.cc",
      "score": 99
    },
    {
      "type": "rename",
      "old_id": "4230260090d82dcba74ef7bece84ef7029d68cfd",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/hal.h",
      "new_id": "02201a928d149c99b0730641be86213de06b9ec5",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/hal.h",
      "score": 97
    },
    {
      "type": "rename",
      "old_id": "f9f27e95b82259fa53c76d96a19144de40e37cc7",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/hal_test.py",
      "new_id": "f9f27e95b82259fa53c76d96a19144de40e37cc7",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/hal_test.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "6c4487dbfc42ec84b8e77ada6ce9e76f0f6093da",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/initialize_module.cc",
      "new_id": "211e7dc36dafc82c4538f2340ea9ca65d8f82759",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/initialize_module.cc",
      "score": 84
    },
    {
      "type": "rename",
      "old_id": "8e8c4a9881a8e1bb9411741ce903e4d73aa357ad",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/invoke.cc",
      "new_id": "b0b9a5951f6927432d5f8b3b8509c576bec2a835",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/invoke.cc",
      "score": 99
    },
    {
      "type": "rename",
      "old_id": "65e86b7552bc23c3a5930771fa251a2f966948c7",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/invoke.h",
      "new_id": "206524fac248de286b817c9e6a9d3b5f5b512b35",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/invoke.h",
      "score": 90
    },
    {
      "type": "rename",
      "old_id": "007e96ecd4298f8723d2251cbbcf15216e7370ad",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/scripts/iree_benchmark_trace/__main__.py",
      "new_id": "007e96ecd4298f8723d2251cbbcf15216e7370ad",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/scripts/iree_benchmark_trace/__main__.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "a5509a3d013ae996d9aedeedd96ed1a55717388b",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/scripts/iree_run_module/__main__.py",
      "new_id": "a5509a3d013ae996d9aedeedd96ed1a55717388b",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/scripts/iree_run_module/__main__.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "08dced348ebaa3cf3e26b82d5c9f23e3046520dd",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/scripts/iree_run_trace/__main__.py",
      "new_id": "08dced348ebaa3cf3e26b82d5c9f23e3046520dd",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/scripts/iree_run_trace/__main__.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "58f2118d7c3b713f08e3e31238636291444406c9",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/scripts/iree_tracy_capture/__main__.py",
      "new_id": "58f2118d7c3b713f08e3e31238636291444406c9",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/scripts/iree_tracy_capture/__main__.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "b12ccd21bcbac40292ef399b4bb7dae3765394cd",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/status_utils.cc",
      "new_id": "a05bfd5dcfd6692a97a367bca911de0d4e7e3e81",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/status_utils.cc",
      "score": 97
    },
    {
      "type": "rename",
      "old_id": "d87d30859d2e433e990d54b9c09b897087793c80",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/status_utils.h",
      "new_id": "d87d30859d2e433e990d54b9c09b897087793c80",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/status_utils.h",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "fc82a3b42dfdc02bb5115e04ba1480ef5a8cf90c",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/system_api.py",
      "new_id": "fc82a3b42dfdc02bb5115e04ba1480ef5a8cf90c",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/system_api.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "ed9a585e60af910c76d9b65177e025c6566a161d",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/system_api_test.py",
      "new_id": "ed9a585e60af910c76d9b65177e025c6566a161d",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/system_api_test.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "ea804ac22d6f4dbe880116d7f50f4c948eac6b08",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/tracing.py",
      "new_id": "ea804ac22d6f4dbe880116d7f50f4c948eac6b08",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/tracing.py",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "fd766d1a634d39ff9f0f3eaaa6140bccfe0ae84c",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/unix_version.lds",
      "new_id": "fd766d1a634d39ff9f0f3eaaa6140bccfe0ae84c",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/unix_version.lds",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "34cb5aae6fadef852f230effea3540ffbd7c3992",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/vm.cc",
      "new_id": "53dbbd1013998b4a4760606b5d613ae4e1698309",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/vm.cc",
      "score": 99
    },
    {
      "type": "rename",
      "old_id": "aa6c62a754e4ea4f69d89e098a09954401eafa1b",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/vm.h",
      "new_id": "48fdbab06ea6a00ee60e5d7b7ab9ed08cb5fc6c8",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/vm.h",
      "score": 97
    },
    {
      "type": "rename",
      "old_id": "d7304426a48d391014fbfde18eba2588db81cbe7",
      "old_mode": 33188,
      "old_path": "bindings/python/iree/runtime/vm_test.py",
      "new_id": "d7304426a48d391014fbfde18eba2588db81cbe7",
      "new_mode": 33188,
      "new_path": "runtime/bindings/python/iree/runtime/vm_test.py",
      "score": 100
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "22b40196a2d0ffc4adcadfee34a72e1491972c2d",
      "new_mode": 33188,
      "new_path": "runtime/pyproject.toml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fa684bc0cacba1fb050e27452db04512b88dc861",
      "new_mode": 33188,
      "new_path": "runtime/setup.py"
    }
  ]
}
