diff options
author | Purnendu Ghosh <purnendu@gmail.com> | 2018-11-29 18:05:57 +0530 |
---|---|---|
committer | Purnendu Ghosh <purnendu@gmail.com> | 2018-11-29 18:05:57 +0530 |
commit | c60c0e8b53594e9f6cc493421f68d87ecdf1756b (patch) | |
tree | b68b6eb5abb6861f7c94eafbbcf731d1bb0168e0 | |
parent | f0717973f56384a893d3ebd299fd4cb430d7c616 (diff) |
Added entry point for tugboat plugin and minor fixes
-rw-r--r-- | setup.py | 1 | ||||
-rw-r--r-- | spyglass/data_extractor/custom_exceptions.py | 1 | ||||
-rw-r--r-- | spyglass/data_extractor/plugins/tugboat/excel_parser.py | 3 |
3 files changed, 3 insertions, 2 deletions
@@ -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 | |||
38 | class MissingAttributeError(BaseError): | 39 | class 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 | |||
19 | import yaml | 19 | import yaml |
20 | from openpyxl import load_workbook | 20 | from openpyxl import load_workbook |
21 | from openpyxl import Workbook | 21 | from openpyxl import Workbook |
22 | from spyglass.data_extractor.custom_exceptions import | 22 | from 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 | ||
26 | LOG = logging.getLogger(__name__) | 25 | LOG = logging.getLogger(__name__) |