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

MAINT: more robust behaviour for wakepy failures #76

Merged
merged 1 commit into from
Mar 8, 2024
Merged
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies = ["blosc2",
"numpy",
"trogon",
"unsync",
"wakepy>0.7",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down
11 changes: 10 additions & 1 deletion src/ensembl_lite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


try:
import wakepy.keep.running as keep_running
from wakepy.keep import running as keep_running
except ImportError:
from ensembl_lite._util import fake_wake as keep_running

Expand All @@ -34,6 +34,15 @@
from ensembl_lite._species import Species


try:
# trap flaky behaviour on linux
with keep_running():
...

except NotImplementedError:
from ensembl_lite._util import fake_wake as keep_running


def _get_installed_config_path(ctx, param, path) -> os.PathLike:
"""path to installed.cfg"""
path = pathlib.Path(path)
Expand Down
Loading