You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by el...@apache.org on 2023/03/05 05:11:12 UTC
[airflow] branch main updated: Limit importlib-metadata backwport to < 5.0.0 (#29924)
This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4ea457a5ca Limit importlib-metadata backwport to < 5.0.0 (#29924)
4ea457a5ca is described below
commit 4ea457a5ca694eab150e02a26c0b3ef62858fbca
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.
---
setup.cfg | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/setup.cfg b/setup.cfg
index 8c52f566cf..d0f8b2489f 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