diff options
Diffstat (limited to 'src/hydrilla/builder/build.py')
-rw-r--r-- | src/hydrilla/builder/build.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py index 891b568..8e10776 100644 --- a/src/hydrilla/builder/build.py +++ b/src/hydrilla/builder/build.py @@ -35,6 +35,7 @@ import jsonschema import click from .. import util +from . import _version here = Path(__file__).resolve().parent @@ -42,6 +43,11 @@ _ = util.translation(here / 'locales').gettext index_validator = util.validator_for('package_source-1.schema.json') +generated_by = { + 'name': 'hydrilla.builder', + 'version': _version.version +} + class FileReferenceError(Exception): """ Exception used to report various problems concerning files referenced from @@ -278,9 +284,10 @@ class Build: new_item_obj.update([(p, item_def[p]) for p in copy_props]) new_item_obj['version'] = util.normalize_version(item_def['version']) - new_item_obj['api_schema_version'] = [1, 0, 1] + new_item_obj['api_schema_version'] = [1] new_item_obj['source_copyright'] = self.copyright_file_refs new_item_obj['source_name'] = self.source_name + new_item_obj['generated_by'] = generated_by item_list.append(new_item_obj) @@ -327,12 +334,13 @@ class Build: } self.source_description = { - 'api_schema_version': [1, 0, 1], + 'api_schema_version': [1], 'source_name': self.source_name, 'source_copyright': self.copyright_file_refs, 'upstream_url': index_obj['upstream_url'], 'definitions': item_refs, - 'source_archives': source_archives_obj + 'source_archives': source_archives_obj, + 'generated_by': generated_by } if 'comment' in index_obj: |