From e72bf6577d2a7dec6421d7d6804a0f96af315a1f Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Wed, 20 Sep 2023 10:37:58 -0400 Subject: [PATCH] Fix relative import error on import __version__ This commit fixes the following error discovered when trying to run the latest executable: File "codecov_cli/main.py", line 23, in ImportError: attempted relative import with no known parent package Signed-off-by: joseph-sentry --- codecov_cli/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codecov_cli/main.py b/codecov_cli/main.py index 697b0a5b..a1113a01 100644 --- a/codecov_cli/main.py +++ b/codecov_cli/main.py @@ -4,6 +4,7 @@ import click +from codecov_cli import __version__ from codecov_cli.commands.base_picking import pr_base_picking from codecov_cli.commands.commit import create_commit from codecov_cli.commands.create_report_result import create_report_results @@ -20,8 +21,6 @@ from codecov_cli.helpers.logging_utils import configure_logger from codecov_cli.helpers.versioning_systems import get_versioning_system -from . import __version__ - logger = logging.getLogger("codecovcli")