diff --git a/setup.py b/setup.py index 756e3c8ac83d6..44998d8747ce9 100644 --- a/setup.py +++ b/setup.py @@ -191,7 +191,7 @@ def git_version() -> str: try: repo = git.Repo(str(AIRFLOW_SOURCES_ROOT / ".git")) - except (git.NoSuchPathError): + except git.NoSuchPathError: logger.warning(".git directory not found: Cannot compute the git version") return "" except git.InvalidGitRepositoryError: @@ -266,9 +266,9 @@ def write_version(filename: str = str(AIRFLOW_SOURCES_ROOT / "airflow" / "git_ve doc = [ "astroid>=2.12.3", "checksumdir", - # Click 8.1.4 breaks our mypy checks. The upper limit can be lifted when the - # https://github.com/apache/airflow/issues/32412 issue is resolved - "click>=8.0,<8.1.4", + # click 8.1.4 and 8.1.5 generate mypy errors due to typing issue in the upstream package: + # https://github.com/pallets/click/issues/2558 + "click>=8.0,!=8.1.4,!=8.1.5", # Docutils 0.17.0 converts generated