From c315e08e6ed92efbfe40c168e2d065468d91a0ba Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 19 Dec 2018 14:36:08 +0100 Subject: [PATCH] Fix formatting of meta.json after spacy package --- spacy/cli/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/package.py b/spacy/cli/package.py index 88b93c9af..421330e23 100644 --- a/spacy/cli/package.py +++ b/spacy/cli/package.py @@ -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)