diff --git a/pyproject.toml b/pyproject.toml index 5d117cfcdb6..66844ec1d52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ dependencies = [ "cattrs", "ddsketch>=2.0.1", "envier", - "importlib_metadata; python_version<'3.8'", + "importlib_metadata<=6.5.0; python_version<'3.8'", "opentelemetry-api>=1", "protobuf>=3", "setuptools; python_version>='3.12'", diff --git a/releasenotes/notes/pin-importlib-to-6.5.0-to-avoid-importlib-issue-455-d098894f7a29591b.yaml b/releasenotes/notes/pin-importlib-to-6.5.0-to-avoid-importlib-issue-455-d098894f7a29591b.yaml new file mode 100644 index 00000000000..97be5da5ba0 --- /dev/null +++ b/releasenotes/notes/pin-importlib-to-6.5.0-to-avoid-importlib-issue-455-d098894f7a29591b.yaml @@ -0,0 +1,3 @@ +fixes: + - | + Pin importlib_metadata to 6.5.0 to avoid its issue 455 (https://github.com/python/importlib_metadata/issues/455). diff --git a/setup.py b/setup.py index 90bd49aac2e..40d353190c2 100644 --- a/setup.py +++ b/setup.py @@ -577,7 +577,7 @@ def get_ddup_ext(): "cattrs", "six>=1.12.0", "typing_extensions", - "importlib_metadata; python_version<'3.8'", + "importlib_metadata<=6.5.0; python_version<'3.8'", "xmltodict>=0.12", "envier", "opentelemetry-api>=1",