-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
77 additions
and
69 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
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
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 |
---|---|---|
|
@@ -9,30 +9,30 @@ | |
""" | ||
|
||
import dataclasses as _dc | ||
from importlib.util import find_spec as _find_spec | ||
from pathlib import Path as _Path | ||
from typing import Set as _Set | ||
|
||
__author__ = """Dominic Thorn""" | ||
__email__ = "[email protected]" | ||
__version__ = "4.2.0" | ||
__version__ = "4.3.0" | ||
|
||
_MODULE_PATH: _Path = _Path(__file__).parent.absolute() | ||
|
||
|
||
_OPTIONAL_DEPENDENCIES: _Set[str] = { | ||
"PIL", # Only used for type checking and conversion | ||
"IPython", | ||
"matplotlib", | ||
"pandas", | ||
"bokeh", | ||
"plotly", | ||
"weasyprint", | ||
} | ||
@_dc.dataclass(frozen=True) | ||
class _OptionalDependencies: | ||
PIL: bool = _find_spec("PIL") is not None | ||
IPython: bool = _find_spec("IPython") is not None | ||
matplotlib: bool = _find_spec("matplotlib") is not None | ||
pandas: bool = _find_spec("pandas") is not None | ||
bokeh: bool = _find_spec("bokeh") is not None | ||
plotly: bool = _find_spec("plotly") is not None | ||
weasyprint: bool = _find_spec("weasyprint") is not None | ||
|
||
def all_extras(self) -> bool: | ||
return all(_dc.astuple(self)) | ||
|
||
_INSTALLED_MODULES: _Set[str] = { | ||
x.name for x in [_find_spec(dep) for dep in _OPTIONAL_DEPENDENCIES] if x | ||
} | ||
|
||
from esparto._options import OutputOptions, options | ||
from esparto.design.content import ( | ||
|
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "esparto" | ||
version = "4.2.0" | ||
version = "4.3.0" | ||
description = "Data driven report builder for the PyData ecosystem." | ||
authors = ["Dominic Thorn <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -14,6 +14,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Intended Audience :: Developers", | ||
] | ||
|
||
|
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
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
Oops, something went wrong.