You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/03/08 14:44:34 UTC

[airflow] 19/20: Limit importlib-metadata backwport to < 5.0.0 (#29924)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit d0966cfc2c27c7953c297cc3254844eaebcfd92b
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Mar 5 06:11:04 2023 +0100

    Limit importlib-metadata backwport to < 5.0.0 (#29924)
    
    The Importlib-metadata 5 breaks importing Celery < 5.3.0. Until
    Celery 5.3.0 gets released (it is pre-release/beta now) we should
    workaround the problem by limiting importlib-metadata to < 5.0.0.
    
    (cherry picked from commit 4ea457a5ca694eab150e02a26c0b3ef62858fbca)
---
 setup.cfg | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/setup.cfg b/setup.cfg
index e55108fb92..39a73305a8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -101,7 +101,10 @@ install_requires =
     graphviz>=0.12
     gunicorn>=20.1.0
     httpx
-    importlib_metadata>=1.7;python_version<"3.9"
+    # Importlib-metadata 5 is breaking Celery import due to regression it introduced
+    # This was tracked and fixed in https://github.com/celery/celery/pull/7785 but it is not released yet
+    # We can remove the < 5.0.0 limitation hwne Celery 5.3.0 gets released and we bump celeryt o >= 5.3.0
+    importlib_metadata>=1.7,<5.0.0;python_version<"3.9"
     importlib_resources>=5.2;python_version<"3.9"
     itsdangerous>=2.0
     jinja2>=3.0.0