diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index 29b65660a95a6..6cdd5be83cd96 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -27,7 +27,6 @@ flup,Vendor,BSD-3-Clause,Copyright (c) 2005 Allan Saddi. All Rights Reserved. flup-py3,Vendor,BSD-3-Clause,"Copyright (c) 2005, 2006 Allan Saddi All rights reserved." foundationdb,PyPI,Apache-2.0,Copyright 2017 FoundationDB hazelcast-python-client,PyPI,Apache-2.0,"Copyright (c) 2008-2023, Hazelcast, Inc. All Rights Reserved." -importlib-metadata,PyPI,Apache-2.0,"Copyright 2017-2019 Jason R. Coombs, Barry Warsaw" in-toto,PyPI,Apache-2.0,Copyright 2018 New York University jellyfish,PyPI,MIT,Copyright (c) 2015 James Turk kentik-snmp-profiles,"https://github.com/kentik/snmp-profiles",Apache-2.0, diff --git a/agent_requirements.in b/agent_requirements.in index 44250c09d2a44..af3817d0bcbf0 100644 --- a/agent_requirements.in +++ b/agent_requirements.in @@ -16,7 +16,6 @@ dnspython==2.6.1 duckdb==1.1.1 foundationdb==6.3.24 hazelcast-python-client==5.4.0 -importlib-metadata==2.1.3; python_version < '3.8' in-toto==2.0.0 jellyfish==1.1.0 kubernetes==30.1.0 diff --git a/datadog_checks_base/datadog_checks/base/utils/agent/packages.py b/datadog_checks_base/datadog_checks/base/utils/agent/packages.py index 02176d6a7a2ef..18d90a83d8788 100644 --- a/datadog_checks_base/datadog_checks/base/utils/agent/packages.py +++ b/datadog_checks_base/datadog_checks/base/utils/agent/packages.py @@ -1,12 +1,7 @@ # (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) -import sys - -if sys.version_info >= (3, 8): - from importlib.metadata import distributions -else: - from importlib_metadata import distributions +from importlib.metadata import distributions DATADOG_CHECK_PREFIX = 'datadog-' diff --git a/datadog_checks_base/pyproject.toml b/datadog_checks_base/pyproject.toml index 8ff7f6bd6ce2c..4967771e465f7 100644 --- a/datadog_checks_base/pyproject.toml +++ b/datadog_checks_base/pyproject.toml @@ -38,7 +38,6 @@ deps = [ "cachetools==5.5.0", "cryptography==43.0.1", "ddtrace==2.10.6", - "importlib-metadata==2.1.3; python_version < '3.8'", "jellyfish==1.1.0", "prometheus-client==0.20.0", "protobuf==5.27.3",