summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPurnendu Ghosh <purnendu@gmail.com>2018-11-29 18:05:57 +0530
committerPurnendu Ghosh <purnendu@gmail.com>2018-11-29 18:05:57 +0530
commitc60c0e8b53594e9f6cc493421f68d87ecdf1756b (patch)
treeb68b6eb5abb6861f7c94eafbbcf731d1bb0168e0
parentf0717973f56384a893d3ebd299fd4cb430d7c616 (diff)
Added entry point for tugboat plugin and minor fixes
-rw-r--r--setup.py1
-rw-r--r--spyglass/data_extractor/custom_exceptions.py1
-rw-r--r--spyglass/data_extractor/plugins/tugboat/excel_parser.py3
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(
39 ], 39 ],
40 'data_extractor_plugins': 40 'data_extractor_plugins':
41 ['formation=spyglass.data_extractor.plugins.formation:FormationPlugin', 41 ['formation=spyglass.data_extractor.plugins.formation:FormationPlugin',
42 'tugboat=spyglass.data_extractor.plugins.tugboat.tugboat:TugboatPlugin',
42 ] 43 ]
43 }, 44 },
44 include_package_data=True, 45 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):
35 self.specs)) 35 self.specs))
36 sys.exit(1) 36 sys.exit(1)
37 37
38
38class MissingAttributeError(BaseError): 39class MissingAttributeError(BaseError):
39 pass 40 pass
40 41
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
19import yaml 19import yaml
20from openpyxl import load_workbook 20from openpyxl import load_workbook
21from openpyxl import Workbook 21from openpyxl import Workbook
22from spyglass.data_extractor.custom_exceptions import 22from spyglass.data_extractor.custom_exceptions import NoSpecMatched
23 NoSpecMatched, )
24# from spyglass.data_extractor.custom_exceptions 23# from spyglass.data_extractor.custom_exceptions
25 24
26LOG = logging.getLogger(__name__) 25LOG = logging.getLogger(__name__)