Skip to content

Commit 43dc0c7

Browse files
committed
fix(cli): report version using importlib rather than pkg_resources.
1 parent b38f3b9 commit 43dc0c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unblob/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env python3
22
import atexit
33
import sys
4+
from importlib.metadata import version
45
from pathlib import Path
56
from typing import Dict, Iterable, List, Optional, Tuple
67

78
import click
8-
import pkg_resources
99
from rich.console import Console
1010
from rich.panel import Panel
1111
from rich.table import Table
@@ -36,7 +36,7 @@ def restore_cursor():
3636

3737

3838
def get_version():
39-
return pkg_resources.get_distribution("unblob").version
39+
return version("unblob")
4040

4141

4242
def show_version(

0 commit comments

Comments
 (0)