)]}'
{
  "commit": "8f00d1eea0004ac6287320090eb3ec4e397d31dd",
  "tree": "17f280183546f78c99437b8b3acda8470ed0d8a8",
  "parents": [
    "c1cd022f16e434cbc3e4d95792977ae762420f95"
  ],
  "author": {
    "name": "Henry Schreiner",
    "email": "HenrySchreinerIII@gmail.com",
    "time": "Fri Mar 28 12:57:39 2025 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Mar 28 09:57:39 2025 -0700"
  },
  "message": "fix: set __file__ on submodules (#5584)\n\n* fix: set __file__ on submodules\n\nThe docs state [\u0027The caller is responsible for setting a `__file__` attribute\u0027](https://docs.python.org/3/c-api/module.html), but we\nwere not doing that, which interferes with pickling objects in submodules using cloudpickle. Users previously had to set the `__file__` attributes manually,\nsuch as in https://github.com/scikit-hep/boost-histogram/blob/1fbbe1632e1665863b9c84b10edf6aa659a14bf1/src/boost_histogram/histogram.py#L83-L90.\n\nSigned-off-by: Henry Schreiner \u003chenryschreineriii@gmail.com\u003e\n\n* fix: support GraalPy\n\nSigned-off-by: Henry Schreiner \u003chenryschreineriii@gmail.com\u003e\n\n* fix: workaround only for GraalPython\n\nSigned-off-by: Henry Schreiner \u003chenryschreineriii@gmail.com\u003e\n\n* Add GRAALPY_VERSION_NUM to GraalPy workaround\n\n* Fix \"GRAALPY_VERSION_NUM not defined\" issue\n\n```\n/Users/runner/work/pybind11/pybind11/include/pybind11/pybind11.h:1340:32: error: \u0027GRAALPY_VERSION_NUM\u0027 is not defined, evaluates to 0 [-Werror,-Wundef]\n                               ^\n```\n\nRelated ChatGPT conversation: https://chatgpt.com/share/67e6cb99-84b0-8008-99d6-aadc70242cf3\n\n---------\n\nSigned-off-by: Henry Schreiner \u003chenryschreineriii@gmail.com\u003e\nCo-authored-by: Ralf W. Grosse-Kunstleve \u003crgrossekunst@nvidia.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "caca57b3e47a4cf2e9c34ceb4d56fb22e35c7cd0",
      "old_mode": 33188,
      "old_path": "include/pybind11/pybind11.h",
      "new_id": "5f24dbde7a0f3dcc67b9312c9f20b1dcf40d439d",
      "new_mode": 33188,
      "new_path": "include/pybind11/pybind11.h"
    },
    {
      "type": "modify",
      "old_id": "ad898be89adf70eedbc17dac952a28ccb955f9a1",
      "old_mode": 33188,
      "old_path": "tests/test_modules.py",
      "new_id": "f26c43da993c1089b8e1340e4f23e8d8ead0c504",
      "new_mode": 33188,
      "new_path": "tests/test_modules.py"
    }
  ]
}
