From c60c0e8b53594e9f6cc493421f68d87ecdf1756b Mon Sep 17 00:00:00 2001 From: Purnendu Ghosh Date: Thu, 29 Nov 2018 18:05:57 +0530 Subject: [PATCH] Added entry point for tugboat plugin and minor fixes --- setup.py | 1 + spyglass/data_extractor/custom_exceptions.py | 1 + spyglass/data_extractor/plugins/tugboat/excel_parser.py | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e21ec83..2011afc 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,7 @@ setup( ], 'data_extractor_plugins': ['formation=spyglass.data_extractor.plugins.formation:FormationPlugin', + 'tugboat=spyglass.data_extractor.plugins.tugboat.tugboat:TugboatPlugin', ] }, include_package_data=True, diff --git a/spyglass/data_extractor/custom_exceptions.py b/spyglass/data_extractor/custom_exceptions.py index f43a69f..40f67d6 100644 --- a/spyglass/data_extractor/custom_exceptions.py +++ b/spyglass/data_extractor/custom_exceptions.py @@ -35,6 +35,7 @@ class NoSpecMatched(BaseError): self.specs)) sys.exit(1) + class MissingAttributeError(BaseError): pass diff --git a/spyglass/data_extractor/plugins/tugboat/excel_parser.py b/spyglass/data_extractor/plugins/tugboat/excel_parser.py index 83e4f85..f7b78c1 100644 --- a/spyglass/data_extractor/plugins/tugboat/excel_parser.py +++ b/spyglass/data_extractor/plugins/tugboat/excel_parser.py @@ -19,8 +19,7 @@ import sys import yaml from openpyxl import load_workbook from openpyxl import Workbook -from spyglass.data_extractor.custom_exceptions import - NoSpecMatched, ) +from spyglass.data_extractor.custom_exceptions import NoSpecMatched # from spyglass.data_extractor.custom_exceptions LOG = logging.getLogger(__name__)