From c82debd18ab02a8049dc6f9735cfa1d380750ba2 Mon Sep 17 00:00:00 2001 From: Pawan Singh Pal Date: Thu, 29 Nov 2018 23:29:17 +0530 Subject: [PATCH] Update build settings and documentation --- MANIFEST.in | 2 ++ doc/source/getting_started.rst | 12 +++++++++++- doc/source/tugboat.rst | 15 +++++++++------ doc/source/yaml-editor.rst | 8 ++++---- setup.py | 2 +- .../data_extractor/plugins/tugboat/__init__.py | 0 spyglass/parser/engine.py | 15 ++++++++------- 7 files changed, 35 insertions(+), 19 deletions(-) create mode 100644 spyglass/data_extractor/plugins/tugboat/__init__.py diff --git a/MANIFEST.in b/MANIFEST.in index d90a4e1..e00b83e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,4 @@ recursive-include spyglass/utils/editor/static * recursive-include spyglass/utils/editor/templates * +recursive-include spyglass/ **.yaml +recursive-include spyglass/ **.json diff --git a/doc/source/getting_started.rst b/doc/source/getting_started.rst index fec8cc6..d8d52ba 100644 --- a/doc/source/getting_started.rst +++ b/doc/source/getting_started.rst @@ -187,7 +187,17 @@ spyglass -mg --type formation -f -u -p -d -e -d -s --template_dir= for example: -spyglass -mg -t tugboat -x SiteDesignSpec_v1.1.xlsx -e excel_spec_upstream.yaml -d site_config.yaml -s airship-seaworthy --template_dir= + 2.1 Generating intermediary and manifests + spyglass -mg -t tugboat -x SiteDesignSpec_v1.1.xlsx -e excel_spec_upstream.yaml -d site_config.yaml -s airship-seaworthy --template_dir= + + 2.2 Generating intermediary without manifests + spyglass -g -t tugboat -x SiteDesignSpec_v1.1.xlsx -e excel_spec_upstream.yaml -d site_config.yaml -s airship-seaworthy + + 2.3 Generating manifests without intermediary + spyglass -m -t tugboat -x SiteDesignSpec_v1.1.xlsx -e excel_spec_upstream.yaml -d site_config.yaml -s airship-seaworthy --template_dir= + + 2.4 Generating manifests using intermediary + spyglass -mi --template_dir= Where sample 'excel_spec_upstream.yaml', 'SiteDesignSpec_v0.1.xlsx' 'site_config.yaml' and J2 templates can be found under 'spyglass/examples' diff --git a/doc/source/tugboat.rst b/doc/source/tugboat.rst index 9851149..c17508d 100644 --- a/doc/source/tugboat.rst +++ b/doc/source/tugboat.rst @@ -85,13 +85,16 @@ Below is the definition for each key in the Excel spec Example: Tugboat Plugin Usage ----------------------------- + 1. Required Input(Refer to 'spyglass/examples' folder to get these inputs) - a) Excel File: SiteDesignSpec_v0.1.xlsx - b) Excel Spec: excel_spec_upstream.yaml - c) Site Config: site_config.yaml - d) Template_dir: '../examples/templates' - e) Site name: airship-seaworthy + + a) Excel File: SiteDesignSpec_v0.1.xlsx + b) Excel Spec: excel_spec_upstream.yaml + c) Site Config: site_config.yaml + d) Template_dir: '../examples/templates' + e) Site name: airship-seaworthy 2. Spyglass CLI Command: - spyglass -mg -t tugboat -x SiteDesignSpec_v0.1.xlsx -e excel_spec_upstream.yaml -d site_config.yaml -s airship-seaworthy --template_dir=