From 760466eed50917d8947cbca120eca28015e0426d Mon Sep 17 00:00:00 2001 From: KIC <10957396+KIC@users.noreply.github.com> Date: Sat, 22 Jun 2024 11:57:45 +0000 Subject: [PATCH] fix importlib --- src/zbarlight/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zbarlight/__init__.py b/src/zbarlight/__init__.py index 5b898cd..d87c330 100644 --- a/src/zbarlight/__init__.py +++ b/src/zbarlight/__init__.py @@ -1,12 +1,12 @@ import warnings -import pkg_resources +from importlib import metadata from PIL import Image from ._zbarlight import Symbologies from ._zbarlight import zbar_code_scanner -__version__ = pkg_resources.get_distribution('zbarlight').version +__version__ = metadata.version('zbarlight') __ALL__ = [ 'Symbologies', 'UnknownSymbologieError',