airflow: Inconsistency between the setup.py and the constraints file

Apache Airflow version: 2.0.2

What happened:

Airflow’s 2.0.2’s constraints file has used newer oauthlib==3.1.0 and request-oauthlib==1.3.0 than 2.0.1’s constraints file

However both 2.0.2’s setup.py and 2.0.1’s setup.py don’t allow these new versions

Image build with google_auth being an “extra” will fail if using pip==21.0.1 without the --use-deprecated=legacy-resolver flag.

Another option is to use pip==20.2.4.

What you expected to happen:

The package versions in setup.py and constraints-3.8.txt should be consistent with each other.

How to reproduce it:

docker build with the following in the Dockerfile:

pip install apache-airflow[password,celery,redis,postgres,hive,jdbc,mysql,statsd,ssh,google_auth]==2.0.2 \
    --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.0.2/constraints-3.8.txt

image build failed with

ERROR: Could not find a version that satisfies the requirement oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2; extra == "google_auth" (from apache-airflow[celery,google-auth,hive,jdbc,mysql,password,postgres,redis,ssh,statsd])
ERROR: No matching distribution found for oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2; extra == "google_auth"

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (29 by maintainers)

Commits related to this issue

Most upvoted comments

The build is Green 😃. Once we merge we will have PIP 21 official support for Airflow. Yay!