2626from bo4e_cli .diff .diff import diff_schemas
2727from bo4e_cli .diff .matrix import create_compatibility_matrix , create_graph_from_changes , get_path_through_di_path_graph
2828from bo4e_cli .edit .update_refs import update_references_all_schemas
29- from bo4e_cli .io .changes import write_changes
30- from bo4e_cli .io .console import CONSOLE
3129from bo4e_cli .io .git import get_last_n_tags
3230from bo4e_cli .io .github import download_schemas
3331from bo4e_cli .io .matrix import write_compatibility_matrix_csv
@@ -340,7 +338,8 @@ def setup(app):
340338
341339# Create UML diagrams in plantuml format. Compile these into svg files into the _static folder.
342340# See docs/uml.py for more details.
343- if release != "local" :
341+ release_version = Version .from_str (release )
342+ if not release_version .is_dirty ():
344343 uml .LINK_URI_BASE = f"https://bo4e.github.io/BO4E-python/{ release } "
345344_exec_plantuml = Path (__location__ ) / "plantuml.jar"
346345_network , _namespaces_to_parse = uml .build_network (Path (module_dir ), uml .PlantUMLNetwork )
@@ -356,7 +355,6 @@ def setup(app):
356355compatibility_matrix_output_file = Path (__file__ ).parent / "_static/tables/compatibility_matrix.csv"
357356gh_token = os .getenv ("GITHUB_ACCESS_TOKEN" ) or os .getenv ("GITHUB_TOKEN" ) or get_access_token_from_cli_if_installed ()
358357
359- release_version = Version .from_str (release )
360358compiling_from_release_workflow = not release_version .is_dirty ()
361359last_versions = get_last_n_tags (
362360 n = 0 ,
0 commit comments