Skip to content

Commit

Permalink
Add caching for mapper (#433)
Browse files Browse the repository at this point in the history
Also add a new template and fix an issue with the Makefile targets for
`gen-pydantic` (it doesn't accept the pydantic version argument
anymore).
  • Loading branch information
caufieldjh authored Aug 11, 2024
2 parents aa8bb58 + 6a51673 commit a698255
Show file tree
Hide file tree
Showing 5 changed files with 1,080 additions and 646 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ get_version:
$(RUN) python -c "import ontogpt;print('.'.join((ontogpt.__version__).split('.', 3)[:3]))"

$(TEMPLATE_DIR)/%.py: src/$(PACKAGE)/templates/%.yaml
$(RUN) gen-pydantic --pydantic-version 2 $< > $@.tmp && mv $@.tmp $@
$(RUN) gen-pydantic $< > $@.tmp && mv $@.tmp $@

%.py: %.yaml
$(RUN) gen-pydantic --pydantic-version 2 $< > $@
$(RUN) gen-pydantic $< > $@

#all_images: $(patsubst %, docs/images/%.png, $(ENTRY_CLASSES))
#docs/images/%.png:
Expand Down
Loading

0 comments on commit a698255

Please sign in to comment.