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: /issues/35217

* Update setup.cfg

* Update setup.cfg

---------

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
(cherry picked from commit f592b2c)
  • Loading branch information
Kache authored and potiuk committed Oct 29, 2023
1 parent 2dc5688 commit e30fd42
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 @@ -85,7 +85,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 e30fd42

Please sign in to comment.