diff --git a/geos-trame/pyproject.toml b/geos-trame/pyproject.toml index 0b2dce29..865450d7 100644 --- a/geos-trame/pyproject.toml +++ b/geos-trame/pyproject.toml @@ -39,9 +39,9 @@ dependencies = [ "trame-matplotlib==2.0.3", "trame-components==2.4.2", "trame-gantt==0.1.5", - "xsdata==24.5", - "xsdata-pydantic[lxml]==24.5", "pyvista==0.45.2", + "xsdata[cli,lxml,soap]==25.7", + "xsdata-pydantic[lxml]==24.5", "dpath==2.2.0", "colorcet==3.1.0", "funcy==2.0", diff --git a/geos-trame/src/geos/trame/schema_generated/README.md b/geos-trame/src/geos/trame/schema_generated/README.md index cca98585..512a0504 100644 --- a/geos-trame/src/geos/trame/schema_generated/README.md +++ b/geos-trame/src/geos/trame/schema_generated/README.md @@ -31,8 +31,7 @@ cd python -m venv pydantic-venv source pydantic-venv/bin/activate pip install -e . -pip install "xsdata[cli]" -cd src/geos_trame/schema_generated +cd src/geos/trame/schema_generated ``` #### 3. Generate the new file @@ -40,20 +39,21 @@ cd src/geos_trame/schema_generated The full documentation is [here](https://xsdata-pydantic.readthedocs.io/en/latest/codegen/). ```bash -xsdata /src/coreComponents/schema/schema.xsd --output pydantic --package generated_models --structure-style single-package --include-header +xsdata generate /src/coreComponents/schema/schema.xsd --structure-style single-package --include-header ``` -Then update the generated file, at the beginning, by adding the geos commit used: +The generated file will not satisfy the ruff config file used by this repository, as it's a generated file, add at the top of the file this: `# ruff: noqa`, to ignore ruff. -For example: +Rename the `generate.py` file to `schema_mod.py`. + +Add the GEOS commit used to generate this file: ```py -"""This file was generated by xsdata, v24.6.1, on 2024-11-29 +"""This file was generated by xsdata, v24.4, on 2024-04-23 11:59:25 Generator: PydanticGenerator See: https://xsdata.readthedocs.io/ -GEOS commit hash: +GEOS commit sha: 26e7c0ab2b2c3d3d9d82629bddcf394a318df187 """ ``` -