diff --git a/setup.py b/setup.py index 2ef361b964b03..6312f7a65801f 100644 --- a/setup.py +++ b/setup.py @@ -270,7 +270,11 @@ def write_version(filename: str = str(AIRFLOW_SOURCES_ROOT / "airflow" / "git_ve 'sphinx-copybutton', 'sphinx-jinja>=2.0', 'sphinx-rtd-theme>=0.1.6', - 'sphinx>=4.4.0', + # Spinx 5.2.0 introduced deprecation for property documentation and autoapi 1.9.0 generates + # documentation that uses the old way of documenting it. This is tracked in + # https://github.com/readthedocs/sphinx-autoapi/issues/352 of autoapi and until it is solved + # we need to limit Sphinx to <5.2.0 + 'sphinx>=4.4.0,<5.2.0', 'sphinxcontrib-httpdomain>=1.7.0', 'sphinxcontrib-redoc>=1.6.0', 'sphinxcontrib-spelling>=7.3',