Skip to content

Commit d42401b

Browse files
Merge pull request #161 from dalito/issue156-more-robust-gen-project
Tolerate missing dir in just gen-project
2 parents 325b0b4 + e9f0b61 commit d42401b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

template/justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ gen-python:
110110
[group('model development')]
111111
gen-project:
112112
uv run gen-project {{config_yaml}} -d {{dest}} {{source_schema_path}}
113-
mv {{dest}}/*.py {{pymodel}}
113+
mkdir -p {{pymodel}}
114+
mv {{dest}}/*.py {{pymodel}}/
114115
uv run gen-pydantic {{gen_pydantic_args}} {{source_schema_path}} > {{pymodel}}/{{schema_name}}_pydantic.py
115116

116117
@# Some generators ignore config_yaml or cannot create directories, so we run them separately.

template/src/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# The linkML model and its Python representations
2+
3+
This directory holds the schema, its Python representations
4+
and optionally also additional Python code for the project.

0 commit comments

Comments
 (0)