Skip to content

Commit

Permalink
chore[fix]: Fix Celery tests' dependencies.
Browse files Browse the repository at this point in the history
importlib_metadata package removed deprecated entry_point interfaces on
version 5.0.0 [1] , and this change impacts celery >= 5.2.7 [2] running
with python 3.7.X (it doesn't impact >= 3.8). For this reason, we
control celery and importlib_metadata versions on python 3.7
environments.
[1] python/importlib_metadata#405
[2] celery/celery#7783

Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
  • Loading branch information
pvital authored and Ferenc- committed Mar 8, 2023
1 parent 675829b commit c337a76
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/requirements-307.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
aiofiles>=0.5.0
aiohttp>=3.8.3
boto3>=1.17.74

# TODO: importlib_metadata package removed deprecated entry_point interfaces on
# version 5.0.0 [1], and this change impacts celery >= 5.2.7 [2] running with
# python 3.7.X (it doesn't impact >= 3.8). For this reason, we control celery
# and importlib_metadata versions on python 3.7 environments.
# [1] https://github.com/python/importlib_metadata/pull/405
# [2] https://github.com/celery/celery/issues/7783
celery>=5.2.7
# TODO: Remove this when the fix is available in non beta
# We have to use a beta version of kombu on Python 3.7
# because only that fixes "AttributeError: 'EntryPoints' object has no attribute 'get'"
# that we have in the CI: https://app.circleci.com/pipelines/github/instana/python-sensor/1372/workflows/90878561-aada-49f8-8a1b-78562aa05aab/jobs/7478
# the issue: https://github.com/celery/kombu/issues/1600
# the PR: https://github.com/celery/kombu/pull/1601/files
# the release notes: https://github.com/celery/kombu/releases/tag/v5.3.0b2
kombu>=5.3.0b2
importlib-metadata<5.0.0

coverage>=5.5
Django>=3.2.10
Expand Down

0 comments on commit c337a76

Please sign in to comment.