You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/08/05 21:07:00 UTC

[airflow] 02/17: Remove SQLAlchemy <1.4 constraint (#16630)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 68977b9ed93e3522221f55ea93e1848be13ccef0
Author: Tzu-ping Chung <tp...@astronomer.io>
AuthorDate: Thu Jun 24 21:10:15 2021 +0800

    Remove SQLAlchemy <1.4 constraint (#16630)
    
    This was added due to flask-sqlalchemy and sqlalchemy-utils not declaring
    the upper bounds. They have since released sqlalchemy 1.4-compatible
    versions, so we can remove that hack.
    
    Note that this does *not* actually make us run on sqlalchemy 1.4 since
    flask-appbuilder still has a <1.4 pin. But that's for flask-appbuilder
    to worry about -- code in Airflow is compatible, so we can remove the
    constraint now, and get sqlalchemy 1.4 as soon as flask-appbuilder
    allows us to.
    
    (cherry picked from commit d181604739c048c6969d8997dbaf8b159607904b)
---
 setup.cfg | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index 8b03296..0e4868f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -150,8 +150,7 @@ install_requires =
     pyyaml>=5.1
     rich>=9.2.0
     setproctitle>=1.1.8, <2
-    # SQLAlchemy 1.4 breaks sqlalchemy-utils https://github.com/kvesteri/sqlalchemy-utils/issues/505
-    sqlalchemy>=1.3.18, <1.4
+    sqlalchemy>=1.3.18
     sqlalchemy_jsonfield~=1.0
     # Required by vendored-in connexion
     swagger-ui-bundle>=0.0.2