uranusjr commented on a change in pull request #19060:
URL: https://github.com/apache/airflow/pull/19060#discussion_r731444613



##########
File path: airflow/__main__.py
##########
@@ -19,20 +19,28 @@
 # under the License.
 
 """Main executable module"""
-
+import logging
 import os
 
 import argcomplete
 
+from airflow import PY310
 from airflow.cli import cli_parser
 from airflow.configuration import conf
 
+log = logging.getLogger(__file__)
+
 
 def main():
     """Main executable function"""
     if conf.get("core", "security") == 'kerberos':
         os.environ['KRB5CCNAME'] = conf.get('kerberos', 'ccache')
         os.environ['KRB5_KTNAME'] = conf.get('kerberos', 'keytab')
+    if PY310:
+        log.warning(
+            "Python 3.10 is not official supported yet. Please be careful. For 
details, see: "
+            "https://github.com/apache/airflow/issues/19059";
+        )

Review comment:
       Might be better to use the warnings framework for this instead?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to