Kamil Bregula created AIRFLOW-6458:
--------------------------------------

             Summary: Deprecation warning about dropping support for Python 2
                 Key: AIRFLOW-6458
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6458
             Project: Apache Airflow
          Issue Type: Bug
          Components: core
    Affects Versions: 1.10.6
            Reporter: Kamil Bregula


We should add a deprecation warning in Airflow 1.10.x to inform users that 
Python 3 is required in the Airflow 2.0.

We should add something similar to {{airflow/__init__.py}} file
{code:python}
if sys.version_info[0] < 3:
    message = (
        "A future version of this application will drop support for Python 2.7."
        "More details about Python 2 support for Airflow can be found at "
        "https://cloud.google.com/python/docs/python2-sunset/";
    )
    warnings.warn(message, DeprecationWarning)



{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to