From 6050634818943befefe3a85a12503b6d8a1e8106 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 20 Jan 2023 14:57:03 +0000 Subject: [PATCH] Replace pkg_resources in version.py --- setuptools/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setuptools/version.py b/setuptools/version.py index 95e1869658..75b2a14959 100644 --- a/setuptools/version.py +++ b/setuptools/version.py @@ -1,6 +1,6 @@ -import pkg_resources +from ._importlib import metadata try: - __version__ = pkg_resources.get_distribution('setuptools').version + __version__ = metadata.version('setuptools') except Exception: __version__ = 'unknown'