-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove show_versions from top level (#2085)
- Loading branch information
1 parent
2a78e0e
commit 550aca5
Showing
6 changed files
with
51 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
"""aeon toolkit.""" | ||
|
||
__version__ = "0.11.1" | ||
|
||
__all__ = ["show_versions"] | ||
|
||
from aeon.utils._maint._show_versions import show_versions |
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.
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
"""Utility methods to print system info for debugging. | ||
Adapted from the sklearn show_versions function. | ||
""" | ||
|
||
__maintainer__ = ["MatthewMiddlehurst"] | ||
__all__ = ["show_versions"] | ||
|
||
import platform | ||
import sys | ||
from importlib.metadata import PackageNotFoundError, version | ||
|
||
from aeon import __version__ | ||
|
||
deps = [ | ||
"pip", | ||
"setuptools", | ||
"scikit-learn", | ||
"numpy", | ||
"numba", | ||
"scipy", | ||
"pandas", | ||
] | ||
|
||
|
||
def show_versions(): | ||
"""Print useful debugging information.""" | ||
sys_info = { | ||
"python": sys.version.replace("\n", " "), | ||
"executable": sys.executable, | ||
"machine": platform.platform(), | ||
} | ||
|
||
print("\nSystem:") # noqa: T001, T201 | ||
for k, stat in sys_info.items(): | ||
print(f"{k:>10}: {stat}") # noqa: T001, T201 | ||
|
||
deps_info = {"aeon": __version__} | ||
for modname in deps: | ||
try: | ||
deps_info[modname] = version(modname) | ||
except PackageNotFoundError: | ||
deps_info[modname] = None | ||
|
||
print("\nPython dependencies:") # noqa: T001, T201 | ||
for k, stat in deps_info.items(): | ||
print(f"{k:>13}: {stat}") # noqa: T001, T201 |