)]}'
{
  "commit": "a18ae496549559fbea5193bee63d704f11992d67",
  "tree": "7c19a11b9ef013d01340a158b138a8a8c473754a",
  "parents": [
    "148122aff9fcb36fd98ed2f2eda239ced668e863"
  ],
  "author": {
    "name": "Weicheng Zhao",
    "email": "106119275+sfc-gh-wzhao@users.noreply.github.com",
    "time": "Sat Sep 07 05:14:18 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sat Sep 07 12:14:18 2024 +0000"
  },
  "message": "fix: Fix incorrectly generated `Required-Dist` when specifying requirements with markers in extra_requires in py_wheel rule (#2200)\n\nCurrently, if extra requirements are provided via a file, it is allowed\nto contain markers, but if it is passed via extra_requires field, it\nwill run into error since the extra in this case is blindly added in the\nfollowing line in `py_wheel.bzl`\n```\nmetadata_contents.append(\n    \"Requires-Dist: %s; extra \u003d\u003d \u0027%s\u0027\" % (requirement, option),\n)\n```\n\nThus, this PR adds a post-process for this case, to make it possible to\npass something like\n```\n    extra_requires \u003d {\"example\": [\n        \"pyyaml\u003e\u003d6.0.0,!\u003d6.0.1\",\n        \u0027toml; (python_version \u003d\u003d \"3.11\" or python_version \u003d\u003d \"3.12\") and python_version !\u003d \"3.8\"\u0027,\n        \u0027wheel; python_version \u003d\u003d \"3.11\" or python_version \u003d\u003d \"3.12\" \u0027,\n    ]},\n```\nto `py_wheel`",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d4105751eb7b1285b061d4122af490808012c4e3",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "e2c54e3d62901afd68cc6d7f8466df50143ff862",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "aa063ce5426730d1538e1646d4cba049eb03b364",
      "old_mode": 33188,
      "old_path": "examples/wheel/BUILD.bazel",
      "new_id": "1eaf03525a66309cd08845c482a7c262f25b7627",
      "new_mode": 33188,
      "new_path": "examples/wheel/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "66ebd5044d0ab3e9842b98478988db2103d546ee",
      "old_mode": 33188,
      "old_path": "examples/wheel/wheel_test.py",
      "new_id": "72124232bf6d7d3ace4f48ae835830ced70ba734",
      "new_mode": 33188,
      "new_path": "examples/wheel/wheel_test.py"
    },
    {
      "type": "modify",
      "old_id": "8fa3e02d148005f3b5adf7680adb26dda2086f95",
      "old_mode": 33188,
      "old_path": "tools/wheelmaker.py",
      "new_id": "68578b8e58cfed773cf8db83ec8d0f1db30bf48d",
      "new_mode": 33188,
      "new_path": "tools/wheelmaker.py"
    }
  ]
}
