Skip to content

Commit

Permalink
Merge remote-tracking branch 'kba/gds-hash-id'
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Apr 29, 2020
2 parents a28e2de + 52b1a37 commit b22b830
Show file tree
Hide file tree
Showing 5 changed files with 4,286 additions and 1,555 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,18 @@ uninstall:
for mod in $(BUILD_ORDER);do pip uninstall -y $$mod;done

# Regenerate python code from PAGE XSD
generate-page: GDS_PAGE = ocrd_models/ocrd_models/ocrd_page_generateds.py
generate-page: GDS_PAGE_USER = ocrd_models/ocrd_page_user_methods.py
generate-page: repo/assets
generateDS \
-f \
--root-element='PcGts' \
-o ocrd_models/ocrd_models/ocrd_page_generateds.py \
-o $(GDS_PAGE) \
--disable-generatedssuper-lookup \
--user-methods=$(GDS_PAGE_USER) \
repo/assets/data/schema/data/$(PAGE_VERSION).xsd
# hack to prevent #451: enum keys will be strings
sed -i 's/(Enum):$$/(str, Enum):/' $(GDS_PAGE)

#
# Repos
Expand Down
Loading

0 comments on commit b22b830

Please sign in to comment.