From 1d88d0796851159aa53421f30abc3de82cde191c Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 12 Jul 2022 02:32:41 +0200 Subject: [PATCH] Limit astroid version to < 2.12 (#24982) Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in https://github.com/PyCQA/astroid/issues/1708 Until it is fixed, we should limit astroid. GitOrigin-RevId: ee564ef9e57707ef07db1c3353a1406e47d8e3db --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 2435ac046e5..7a74cda39d0 100644 --- a/setup.py +++ b/setup.py @@ -247,6 +247,9 @@ def write_version(filename: str = str(AIRFLOW_SOURCES_ROOT / "airflow" / "git_ve 'requests>=2.26.0', ] doc = [ + # Astroid 2.12.* breaks documentation building + # We can remove the limit here after https://github.com/PyCQA/astroid/issues/1708 is solved + 'astroid<2.12.0', 'click>=8.0', # Docutils 0.17.0 converts generated
into
and breaks our doc formatting # By adding a lot of whitespace separation. This limit can be lifted when we update our doc to handle