Skip to content

Commit f1730cb

Browse files
committed
fix: update procedure to generate GEOS with xsdata
1 parent 5c0fe44 commit f1730cb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

geos-trame/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ dependencies = [
3939
"trame-matplotlib==2.0.3",
4040
"trame-components==2.4.2",
4141
"trame-gantt==0.1.5",
42-
"xsdata==24.5",
43-
"xsdata-pydantic[lxml]==24.5",
4442
"pyvista==0.45.2",
43+
"xsdata[cli,lxml,soap]==25.7",
44+
"xsdata-pydantic[lxml]==24.5",
4545
"dpath==2.2.0",
4646
"colorcet==3.1.0",
4747
"funcy==2.0",

geos-trame/src/geos/trame/schema_generated/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,29 @@ cd <path-to-geos-trame>
3131
python -m venv pydantic-venv
3232
source pydantic-venv/bin/activate
3333
pip install -e .
34-
pip install "xsdata[cli]"
35-
cd src/geos_trame/schema_generated
34+
cd src/geos/trame/schema_generated
3635
```
3736

3837
#### 3. Generate the new file
3938

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

4241
```bash
43-
xsdata <path-to-GEOS>/src/coreComponents/schema/schema.xsd --output pydantic --package generated_models --structure-style single-package --include-header
42+
xsdata generate <path-to-GEOS>/src/coreComponents/schema/schema.xsd --structure-style single-package --include-header
4443
```
4544

46-
Then update the generated file, at the beginning, by adding the geos commit used:
45+
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.
4746

48-
For example:
47+
Rename the `generate.py` file to `schema_mod.py`.
48+
49+
Add the GEOS commit used to generate this file:
4950

5051
```py
51-
"""This file was generated by xsdata, v24.6.1, on 2024-11-29
52+
"""This file was generated by xsdata, v24.4, on 2024-04-23 11:59:25
5253
5354
Generator: PydanticGenerator
5455
See: https://xsdata.readthedocs.io/
5556
56-
GEOS commit hash: <add-the-commit-hash-here>
57+
GEOS commit sha: 26e7c0ab2b2c3d3d9d82629bddcf394a318df187
5758
"""
5859
```
59-

0 commit comments

Comments
 (0)