Skip to content

Commit

Permalink
Move away from deprecated pkg_resources
Browse files Browse the repository at this point in the history
* Use importlib.metadata which has been included in the python standard
  library since 3.8.

Signed-off-by: Alfred Wingate <parona@protonmail.com>
  • Loading branch information
parona-source committed Nov 17, 2023
1 parent 5002718 commit e95c342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebuildtester/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import argparse
import multiprocessing
from pkg_resources import get_distribution
from importlib.metadata import version

from ebuildtester.atom import Atom

Expand All @@ -17,7 +17,7 @@ def parse_commandline(args):
parser.add_argument(
"--version",
action="version",
version="v" + get_distribution("ebuildtester").version)
version="v" + version("ebuildtester"))
parser.add_argument(
"--atom",
help="The package atom(s) to install",
Expand Down

0 comments on commit e95c342

Please sign in to comment.