outline build info json

This commit is contained in:
Maximilian Keßler 2021-10-21 10:03:35 +02:00
parent f609be2152
commit 90cd2b9200

View file

@ -63,5 +63,28 @@ def build(src_dir: Path, build_dir: Path, check_existence: bool = True):
print('[PyTeX] Writing class file {}'.format(formatter.file_name)) print('[PyTeX] Writing class file {}'.format(formatter.file_name))
formatter.make_default_macros() formatter.make_default_macros()
formatter.format_file(input_path=file, output_dir=output_dir) formatter.format_file(input_path=file, output_dir=output_dir)
build_info = {
'build_time': '',
'packages': {
'built': '',
'skipped': ''
},
'classes': {
'built': '',
'skipped': ''
},
'LatexPackages': {
'version': '',
'branch': '',
'commit': '',
'dirty': ''
},
'PyTeX': {
'version': '',
'branch': '',
'commit': '',
'dirty': ''
}
}
print(f'[PyTeX] Successfully built {num_packages} packages (skipped {num_skipped_packages}) ' print(f'[PyTeX] Successfully built {num_packages} packages (skipped {num_skipped_packages}) '
f'and {num_classes} classes (skipped {num_skipped_classes}) in {build_dir}/') f'and {num_classes} classes (skipped {num_skipped_classes}) in {build_dir}/')