Skip to content

Commit

Permalink
Limit astroid version to < 2.12 (#24982)
Browse files Browse the repository at this point in the history
Astroid 2.12 released 9th of July breaks documentation building
with sphinx-autoapi.

Issue about it has been opened in
pylint-dev/astroid#1708

Until it is fixed, we should limit astroid.

GitOrigin-RevId: ee564ef9e57707ef07db1c3353a1406e47d8e3db
  • Loading branch information
potiuk authored and Cloud Composer Team committed Jan 30, 2023
1 parent bae22c0 commit 6b9dcbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div class="section"> into <section> and breaks our doc formatting
# By adding a lot of whitespace separation. This limit can be lifted when we update our doc to handle
Expand Down

0 comments on commit 6b9dcbf

Please sign in to comment.