From eca1022510ae4e642c632d7a2717616f11c34774 Mon Sep 17 00:00:00 2001 From: "Paul.Bramhall" Date: Fri, 5 Apr 2019 11:35:08 +0100 Subject: [PATCH] [AIRFLOW-4246] Flask-Oauthlib needs downstream dependencies pinning due to breaking changes --- setup.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 9b01632427423..64bb42330fdd8 100644 --- a/setup.py +++ b/setup.py @@ -189,9 +189,12 @@ def write_version(filename=os.path.join(*['airflow', 'PyOpenSSL', 'pandas-gbq' ] -github_enterprise = ['Flask-OAuthlib>=0.9.1'] grpc = ['grpcio>=1.15.0'] -google_auth = ['Flask-OAuthlib>=0.9.1'] +flask_oauth = [ + 'Flask-OAuthlib>=0.9.1', + 'oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2', + 'requests-oauthlib==1.1.0' +] hdfs = ['snakebite>=2.7.8'] hive = [ 'hmsclient>=0.1.0', @@ -357,8 +360,8 @@ def do_setup(): 'elasticsearch': elasticsearch, 'gcp': gcp, 'gcp_api': gcp, # TODO: remove this in Airflow 2.1 - 'github_enterprise': github_enterprise, - 'google_auth': google_auth, + 'github_enterprise': flask_oauth, + 'google_auth': flask_oauth, 'grpc': grpc, 'hdfs': hdfs, 'hive': hive,