From 43dc0c77c57fa501012737d2b11388d58bc8b9c4 Mon Sep 17 00:00:00 2001 From: Quentin Kaiser Date: Fri, 13 Oct 2023 15:35:46 +0200 Subject: [PATCH] fix(cli): report version using importlib rather than pkg_resources. --- unblob/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unblob/cli.py b/unblob/cli.py index b9ed724b6b..077a019626 100755 --- a/unblob/cli.py +++ b/unblob/cli.py @@ -1,11 +1,11 @@ #!/usr/bin/env python3 import atexit import sys +from importlib.metadata import version from pathlib import Path from typing import Dict, Iterable, List, Optional, Tuple import click -import pkg_resources from rich.console import Console from rich.panel import Panel from rich.table import Table @@ -36,7 +36,7 @@ def restore_cursor(): def get_version(): - return pkg_resources.get_distribution("unblob").version + return version("unblob") def show_version(