Python: upgrade OpenAPI datamodel-code-generator to 0.53.0

datamodel-code-generator version 0.42.1 fixed a bug[1] for which the
Remote Asset Libraries project had to implement a workaround. Version
0.53.0 introduces some backward-incompatible changes[2], and so it's
best to upgrade to that version before seriously using this generator.

[1]: https://github.com/koxudaxi/datamodel-code-generator/issues/836
[2]: https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.53.0

Before running `ninja generate-datamodels` (replace `ninja` with your
build tool of choice), make sure you delete the virtualenv
(`generate_datamodels_venv/` in your build directory). It will be
recreated with the new dependency version by the next run of `ninja
generate-datamodels`.

Pull Request: https://projects.blender.org/blender/blender/pulls/153427
This commit is contained in:
Sybren A. Stüvel 2026-01-26 16:46:47 +01:00
parent cfa71828b3
commit 374b742b3c
2 changed files with 4 additions and 5 deletions

View file

@ -43,7 +43,7 @@ YAML_PATHS = [
# Packages to install in the virtualenv. These are only necessary to run this
# generator. The generated code does not depend on these.
REQUIREMENTS = [
"datamodel-code-generator ~= 0.28.2",
"datamodel-code-generator ~= 0.53.0",
"PyYAML ~= 6.0.2",
]