Skip to content

Commit

Permalink
Limit importlib-metadata backwport to < 5.0.0 (#29924)
Browse files Browse the repository at this point in the history
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 4ea457a)
  • Loading branch information
potiuk authored and ephraimbuddy committed Mar 9, 2023
1 parent bb90f4a commit 955a559
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,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
Expand Down

0 comments on commit 955a559

Please sign in to comment.