Skip to content

Commit c337a76

Browse files
pvitalFerenc-
authored andcommitted
chore[fix]: Fix Celery tests' dependencies.
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 <[email protected]>
1 parent 675829b commit c337a76

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/requirements-307.txt

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

1414
coverage>=5.5
1515
Django>=3.2.10

0 commit comments

Comments
 (0)