)]}'
{
  "commit": "33fa8455d3c474f6a12dc909d2ca809d2b1a594e",
  "tree": "6a41977775268ba559ac3f41e2bd722394f26c1a",
  "parents": [
    "5c3b71cbccd76b81243fddf2887fdfdd1a5735af"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Mon Oct 07 11:07:27 2024 +0900"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Oct 07 02:07:27 2024 +0000"
  },
  "message": "fix(bzlmod): set the default_version to the python_version flag (#2253)\n\nWith this change we set the default value of `--python_version` when\nthe `python.toolchain` is used in `bzlmod` and we generate the\nappropriate config settings based on the registered toolchains and\ngiven overrides by the root module.\n\nThis means that we expect the `--python_version` to be always set to\na non-empty value under `bzlmod` and we can cleanup code which was\nhandling `//conditions:default` case. This also means that we can\nin theory drop the requirement for `python_version` in `pip.parse`\nand just setup dependencies for all packages that we find in the\n`requirements.txt` file and move on. This is left as future work\nby myself or anyone willing to contribute. We can also start reusing\nthe same `whl_library` instance for multi-platform packages because\nthe python version flag is always set - this will simplify the layout\nand makes the feature non-experimental anymore under bzlmod.\n\nSummary:\n* Add `@pythons_hub` to the `WORKSPACE` with dummy data to make\n  pythons_hub work.\n* Add `MINOR_MAPPING` and `PYTHON_VERSIONS` to pythons_hub to\n  generate the config settings.\n* Remove handling of the default version in `pypi` code under bzlmod.\n\nWork towards #2081, #260, #1708\n\n---------\n\nCo-authored-by: Richard Levasseur \u003crlevasseur@google.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3b348e68c6c8756f57060b6243ae4c44c4af53ab",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "cad878471c45b5240ba07b899c84fff966cd09a8",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "02b3b6e9267f668a1cf2d5b65e06390946e3b09d",
      "old_mode": 33188,
      "old_path": "WORKSPACE",
      "new_id": "ba05ec54c595ee1861119c77826b827ca72d14bc",
      "new_mode": 33188,
      "new_path": "WORKSPACE"
    },
    {
      "type": "modify",
      "old_id": "4ac81910516018bd9841dee9a67c5d739dea6eb9",
      "old_mode": 33188,
      "old_path": "examples/bzlmod/MODULE.bazel",
      "new_id": "5504172e1d358e732eb41a11222e80137be72558",
      "new_mode": 33188,
      "new_path": "examples/bzlmod/MODULE.bazel"
    },
    {
      "type": "modify",
      "old_id": "604aef17c679f112460d65b0b1c8761525ad395b",
      "old_mode": 33188,
      "old_path": "examples/bzlmod/MODULE.bazel.lock",
      "new_id": "9a3ededcb8916912a0cfb67b7f93fc02fd5f7ca2",
      "new_mode": 33188,
      "new_path": "examples/bzlmod/MODULE.bazel.lock"
    },
    {
      "type": "modify",
      "old_id": "9f7aa1ba00c56dbee045ffeaed34ecd9cf812592",
      "old_mode": 33188,
      "old_path": "examples/bzlmod/tests/BUILD.bazel",
      "new_id": "a778ca1aeea6c4a2eb85e4702228d0e6a7169457",
      "new_mode": 33188,
      "new_path": "examples/bzlmod/tests/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "1967c0e568358b6bc59332d6ac46abff22a22038",
      "old_mode": 33188,
      "old_path": "internal_setup.bzl",
      "new_id": "3029c1546f1a12fc08e28cc7711050c52541d54d",
      "new_mode": 33188,
      "new_path": "internal_setup.bzl"
    },
    {
      "type": "modify",
      "old_id": "c31d69f20292ee433da770824d909db3df7f9031",
      "old_mode": 33188,
      "old_path": "python/config_settings/BUILD.bazel",
      "new_id": "9fb395741b8a2cc20af4aad1cc75979edad7be29",
      "new_mode": 33188,
      "new_path": "python/config_settings/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "f128742b2cf19e0c82b09f8e395ff7ea5b5f4beb",
      "old_mode": 33188,
      "old_path": "python/private/BUILD.bazel",
      "new_id": "cb0fd5ca02aa76d39ccc6c543dbbedfd8d7e97bc",
      "new_mode": 33188,
      "new_path": "python/private/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "b15d6a8e0398f604425934b921876fc95d54e92f",
      "old_mode": 33188,
      "old_path": "python/private/config_settings.bzl",
      "new_id": "eceeb549bd30f25d3f2a259b93dc78e51a1cb954",
      "new_mode": 33188,
      "new_path": "python/private/config_settings.bzl"
    },
    {
      "type": "modify",
      "old_id": "8ddcb5d3a78fe4708e55ebd83e475e5b1fb10618",
      "old_mode": 33188,
      "old_path": "python/private/py_repositories.bzl",
      "new_id": "ff8a6389baec5a203d2d9b89ee9c2d6025014574",
      "new_mode": 33188,
      "new_path": "python/private/py_repositories.bzl"
    },
    {
      "type": "modify",
      "old_id": "8cfd3d6525c866a01aec4162387fbd34d585d948",
      "old_mode": 33188,
      "old_path": "python/private/pypi/BUILD.bazel",
      "new_id": "e76f9d36b11345e9cc81784f8249607da701eabf",
      "new_mode": 33188,
      "new_path": "python/private/pypi/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "974121782f76b04f4e4bc0cf5584739ed2461b10",
      "old_mode": 33188,
      "old_path": "python/private/pypi/config_settings.bzl",
      "new_id": "9ccb646a3d5b312d6436f3272a06b6e4b1121f25",
      "new_mode": 33188,
      "new_path": "python/private/pypi/config_settings.bzl"
    },
    {
      "type": "modify",
      "old_id": "712d2fefda66d73bc7c3565da2812affc4e2cbb9",
      "old_mode": 33188,
      "old_path": "python/private/pypi/extension.bzl",
      "new_id": "200aa4327ee31695c544e5181d5e239d33c1a159",
      "new_mode": 33188,
      "new_path": "python/private/pypi/extension.bzl"
    },
    {
      "type": "modify",
      "old_id": "f589dd4744766d71899072f32a7d2a9533830eb7",
      "old_mode": 33188,
      "old_path": "python/private/pypi/hub_repository.bzl",
      "new_id": "7afb616e3d2d87d2984051e3becab7eb1aca4902",
      "new_mode": 33188,
      "new_path": "python/private/pypi/hub_repository.bzl"
    },
    {
      "type": "modify",
      "old_id": "9e5158f8f0dea08916e3c1e55c630160577105bb",
      "old_mode": 33188,
      "old_path": "python/private/pypi/render_pkg_aliases.bzl",
      "new_id": "0086bfff8f9fdb656642856de5d246e322a8e342",
      "new_mode": 33188,
      "new_path": "python/private/pypi/render_pkg_aliases.bzl"
    },
    {
      "type": "modify",
      "old_id": "cedf39a5c7749b5bc4f6df3b827d648b0084aa39",
      "old_mode": 33188,
      "old_path": "python/private/python.bzl",
      "new_id": "83bc43f92e136619aa21e71cef7d37461f06e859",
      "new_mode": 33188,
      "new_path": "python/private/python.bzl"
    },
    {
      "type": "modify",
      "old_id": "68f52493506019e26c708e3b77f42b10539cf86c",
      "old_mode": 33188,
      "old_path": "python/private/python_register_multi_toolchains.bzl",
      "new_id": "1c7138d0e99d08b1ac5777ad0289c2621296a5b7",
      "new_mode": 33188,
      "new_path": "python/private/python_register_multi_toolchains.bzl"
    },
    {
      "type": "modify",
      "old_id": "da6c80d078745cf69b0307fc787ded29969b4f50",
      "old_mode": 33188,
      "old_path": "python/private/pythons_hub.bzl",
      "new_id": "fdaad60e22ae10177e63b53d0e23524eb7793051",
      "new_mode": 33188,
      "new_path": "python/private/pythons_hub.bzl"
    },
    {
      "type": "modify",
      "old_id": "9e6b6e1fc3894b95d255c7208ab4d4ce8597ab99",
      "old_mode": 33188,
      "old_path": "tests/config_settings/construct_config_settings_tests.bzl",
      "new_id": "3abedac5eb60ba73b958304f6204051900bbb930",
      "new_mode": 33188,
      "new_path": "tests/config_settings/construct_config_settings_tests.bzl"
    },
    {
      "type": "modify",
      "old_id": "87e18b412fd8d8ef7009010cfa82b44d9c862890",
      "old_mode": 33188,
      "old_path": "tests/pypi/config_settings/config_settings_tests.bzl",
      "new_id": "a77fa5b66b30bb2d3d777ca25ca7c9a0dc0d7d7b",
      "new_mode": 33188,
      "new_path": "tests/pypi/config_settings/config_settings_tests.bzl"
    },
    {
      "type": "modify",
      "old_id": "09a06311fcd5a90ab38f9d5e148ff79f2424556c",
      "old_mode": 33188,
      "old_path": "tests/pypi/render_pkg_aliases/render_pkg_aliases_test.bzl",
      "new_id": "9de309b2953aea5fcfb92be26b547dfccd0617b0",
      "new_mode": 33188,
      "new_path": "tests/pypi/render_pkg_aliases/render_pkg_aliases_test.bzl"
    },
    {
      "type": "modify",
      "old_id": "101313da4fda391b8904ba7ae0ece5184111dd04",
      "old_mode": 33188,
      "old_path": "tests/python/python_tests.bzl",
      "new_id": "40504302d1ba2962e5a55115da81bd1f05c8675f",
      "new_mode": 33188,
      "new_path": "tests/python/python_tests.bzl"
    }
  ]
}
