Skip to content

Commit

Permalink
Add connexion<3.0 upper bound (#35218)
Browse files Browse the repository at this point in the history
* Add connexion<3.0 upper bound

otherwise, breakage at import: airflow/www/extensions/init_views.py

Fix: apache/airflow/issues/35217

* Update setup.cfg

* Update setup.cfg

---------

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
GitOrigin-RevId: f592b2c40bd23a7bb1e3b471e47c5d1968f70a45
  • Loading branch information
2 people authored and Cloud Composer Team committed Nov 8, 2024
1 parent c6d0d79 commit f450d4a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ install_requires =
# Update CustomTTYColoredFormatter to remove
colorlog>=4.0.2, <5.0
configupdater>=3.1.1
connexion[flask]>=2.10.0
# `airflow/www/extensions/init_views` imports `connexion.decorators.validation.RequestBodyValidator`
# connexion v3 has refactored the entire module to middleware, see: /spec-first/connexion/issues/1525
# Specifically, RequestBodyValidator was removed in: /spec-first/connexion/pull/1595
# The usage was added in #30596, seemingly only to override and improve the default error message.
# Either revert that change or find another way, preferably without using connexion internals.
# This limit can be removed after https://github.com/apache/airflow/issues/35234 is fixed
connexion[flask]>=2.10.0,<3.0
cron-descriptor>=1.2.24
croniter>=0.3.17
cryptography>=0.9.3
Expand Down

0 comments on commit f450d4a

Please sign in to comment.