Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geos-trame/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 8 additions & 8 deletions geos-trame/src/geos/trame/schema_generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@ cd <path-to-geos-trame>
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

The full documentation is [here](https://xsdata-pydantic.readthedocs.io/en/latest/codegen/).

```bash
xsdata <path-to-GEOS>/src/coreComponents/schema/schema.xsd --output pydantic --package generated_models --structure-style single-package --include-header
xsdata generate <path-to-GEOS>/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: <add-the-commit-hash-here>
GEOS commit sha: 26e7c0ab2b2c3d3d9d82629bddcf394a318df187
"""
```

Loading