From 6e3f0e3c252292242430bba98a69cfe2860091b4 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 21 Mar 2023 12:29:53 +0100 Subject: [PATCH] Revert "Also limit importlib on Python 3.9 (#30069)" This reverts commit 6e2bdcfebe3e6dd43854f6e62e4e326079c6df79. The change was done hastily when we released rc1 of 2.5.1 but it turned out to be a red-herring and something that was not really caused by Airflow's dependencies. The importlib_metadata should still be only added as dependency for Python < 3.9 as Python 3.9 does not need it. Also installing importlib_metadata manually (or by other dependencies) even in 6.1 version does not result in automated triggering of the issue - if someone happens to install importlib_metadata in Python 3.9 simply uninstalling it should solve the problem. --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index ddd1158bcd39f..a6f992a4d3f30 100644 --- a/setup.cfg +++ b/setup.cfg @@ -103,8 +103,8 @@ install_requires = httpx # 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 when 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" + # 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