From 418758fc22681b5e01f6277d28c330ad978ed6d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Wed, 26 Feb 2025 11:19:56 -0800 Subject: [PATCH] chore: avoid setuptools for version We might be missing setuptools in certain circumstances in later pythons, but importlib is available from Python 3.8+. --- brozzler/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/__init__.py b/brozzler/__init__.py index 7798e5f..7df8671 100644 --- a/brozzler/__init__.py +++ b/brozzler/__init__.py @@ -19,9 +19,9 @@ limitations under the License. import logging import structlog -from pkg_resources import get_distribution as _get_distribution +from importlib.metadata import version as _version -__version__ = _get_distribution("brozzler").version +__version__ = _version("brozzler") class ShutdownRequested(Exception):