You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Will Hudgins (Jira)" <ji...@apache.org> on 2020/04/27 03:02:00 UTC

[jira] [Commented] (AIRFLOW-6458) Deprecation warning about dropping support for Python 2

    [ https://issues.apache.org/jira/browse/AIRFLOW-6458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092961#comment-17092961 ] 

Will Hudgins commented on AIRFLOW-6458:
---------------------------------------

[~kamil.bregula] If you don't mind, I can work on this one.

> 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
>            Priority: Major
>
> 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)