Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!(imports & deps): add enabled_features dictionary to handle excel…
… engine requirement, set Selenium>=4.17.2 and PyYAML>=6.0.1 (#96) * chore(deps): update Selenium and PyYAML minimum supported versions * refactor(altair saving): update type hints in function signature for path * fix(openpyxl): handle import bug when excel backend openpyxl not installed * chore: add __init__.py to modules * refactor(capabilities): add top level feature_enabled dict for evaluating enabled features
- Loading branch information
Showing
10 changed files
with
88 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from nesta_ds_utils.loading_saving import _gis_enabled, _excel_backend_available | ||
|
||
feature_enabled = { | ||
"gis": _gis_enabled, | ||
"excel": _excel_backend_available, | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from nesta_ds_utils.loading_saving.gis_interface import _gis_enabled | ||
|
||
try: | ||
import openpyxl | ||
|
||
_excel_backend_available = True | ||
|
||
except ImportError: | ||
_excel_backend_available = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters