Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/import resilience #9

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions earthkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# nor does it submit to any jurisdiction.
#

import pkgutil

try:
# NOTE: the `version.py` file must not be present in the git repository
Expand All @@ -16,14 +17,7 @@
# Local copy or not installed with setuptools
__version__ = "999"

import earthkit.data as data
import earthkit.maps as maps
import earthkit

# import earthkit.regrid as regrid

__all__ = [
"data",
"maps",
# "regrid",
"__version__",
]
for component in pkgutil.iter_modules(earthkit.__path__, earthkit.__name__ + "."):
__import__(component.name)
8 changes: 1 addition & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ test_suite = tests

[options]
python-requires = >=3.8
packages = find_namespace:
install_requires =
earthkit-data
earthkit-maps

[options.packages.find]
include = earthkit, earthkit.*
packages = find:

[flake8]
max-line-length = 110
Expand Down
Loading