From a2823296820dbb73443ff57c784c52dfd007bd08 Mon Sep 17 00:00:00 2001 From: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com> Date: Sun, 20 Feb 2022 14:19:57 -0700 Subject: [PATCH] Simply imports in dev github script (#21702) --- dev/airflow-github | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/dev/airflow-github b/dev/airflow-github index d99dc8004f9..9669824dece 100755 --- a/dev/airflow-github +++ b/dev/airflow-github @@ -25,6 +25,8 @@ import sys from collections import Counter, defaultdict from typing import List, Optional +import git +import rich_click as click from github import Github from github.Issue import Issue from github.PullRequest import PullRequest @@ -33,17 +35,6 @@ GIT_COMMIT_FIELDS = ['id', 'author_name', 'author_email', 'date', 'subject', 'bo GIT_LOG_FORMAT = '%x1f'.join(['%h', '%an', '%ae', '%ad', '%s', '%b']) + '%x1e' pr_title_re = re.compile(r".*\((#[0-9]{1,6})\)$") -try: - import rich_click as click -except ImportError: - print("Could not find the click library. Run 'sudo pip install click' to install.") - sys.exit(-1) - -try: - import git -except ImportError: - print("Could not import git. Run 'sudo pip install gitpython' to install") - sys.exit(-1) STATUS_COLOR_MAP = { 'Closed': 'green',