Fix formatting of meta.json after spacy package

This commit is contained in:
Matthew Honnibal 2018-12-19 14:36:08 +01:00
parent b7ce85a6f3
commit c315e08e6e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def package(input_dir, output_dir, meta_path=None, create_meta=False, force=Fals
)
Path.mkdir(package_path, parents=True)
shutil.copytree(path2str(input_path), path2str(package_path / model_name_v))
create_file(main_path / "meta.json", srsly.json_dumps(meta))
create_file(main_path / "meta.json", srsly.json_dumps(meta, indent=2))
create_file(main_path / "setup.py", TEMPLATE_SETUP)
create_file(main_path / "MANIFEST.in", TEMPLATE_MANIFEST)
create_file(package_path / "__init__.py", TEMPLATE_INIT)