diff --git a/jupyverse_api/jupyverse_api/cli.py b/jupyverse_api/jupyverse_api/cli.py index 410241b0..b2246f5b 100644 --- a/jupyverse_api/jupyverse_api/cli.py +++ b/jupyverse_api/jupyverse_api/cli.py @@ -76,11 +76,7 @@ def main( def get_config(disable: Tuple[str, ...]) -> str: group = entry_points().select(group="jupyverse.components") - jupyverse_components = [ - ep.name - for ep in group - if ep.name not in disable - ] + jupyverse_components = [ep.name for ep in group if ep.name not in disable] config = ["component:\n type: jupyverse\n components:\n"] for component in jupyverse_components: diff --git a/plugins/lab/fps_lab/routes.py b/plugins/lab/fps_lab/routes.py index 737ac128..46656df3 100644 --- a/plugins/lab/fps_lab/routes.py +++ b/plugins/lab/fps_lab/routes.py @@ -8,6 +8,7 @@ from typing import List, Optional, Tuple import json5 # type: ignore + if sys.version_info >= (3, 10): from importlib.metadata import entry_points else: