From b05ff976ae2328466ce1a520672eaaf3ac145b35 Mon Sep 17 00:00:00 2001 From: Yiheng Wang Date: Wed, 16 Aug 2023 19:25:15 +0800 Subject: [PATCH] update import method for github Signed-off-by: Yiheng Wang --- ci/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/utils.py b/ci/utils.py index 35cbf97a..70432a34 100644 --- a/ci/utils.py +++ b/ci/utils.py @@ -18,10 +18,11 @@ import subprocess from typing import List -from github import Github from monai.apps.utils import download_url from monai.bundle.config_parser import ConfigParser -from monai.utils import look_up_option +from monai.utils import look_up_option, optional_import + +Github, _ = optional_import("github", name="Github") SUPPORTED_HASH_TYPES = {"md5": hashlib.md5, "sha1": hashlib.sha1, "sha256": hashlib.sha256, "sha512": hashlib.sha512}