Cap the version of importlib-metadata on Python <= 3.7.
Review Request #13083 — Created May 30, 2023 and submitted
Celery 5.2.7 fails to import on Python 3.7 environments when
importlib-metadata>= 5.0 is installed. The
To resolve this, we need to cap
importlib-metadataon older versions
Successfully installed on a Python 3.7 environment and verified that
celery.Celerycould be imported.