From 9e5672c3ae60ed4512fb0dd1609374a09c26a91e Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Tue, 12 Mar 2024 11:41:35 -0400 Subject: [PATCH] feat: Pin importlib-metadata globally for opentelemetry (#406) This will be needed for https://github.com/openedx/edx-django-utils/issues/389 --- edx_lint/files/common_constraints.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/edx_lint/files/common_constraints.txt b/edx_lint/files/common_constraints.txt index 96cc5db..e3bf8ea 100644 --- a/edx_lint/files/common_constraints.txt +++ b/edx_lint/files/common_constraints.txt @@ -21,3 +21,12 @@ elasticsearch<7.14.0 # django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected django-simple-history==3.0.0 + +# opentelemetry requires version 6.x at the moment: +# https://github.com/open-telemetry/opentelemetry-python/issues/3570 +# Normally this could be added as a constraint in edx-django-utils, where we're +# adding the opentelemetry dependency. However, when we compile pip-tools.txt, +# that uses version 7.x, and then there's no undoing that when compiling base.txt. +# So we need to pin it globally, for now. +# Ticket for unpinning: https://github.com/openedx/edx-lint/issues/407 +importlib-metadata<7