Skip to content

Commit

Permalink
Stop using pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Aug 14, 2024
1 parent 49a8e44 commit c0dceb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filesender/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from filesender.config import get_defaults
from functools import wraps
from asyncio import run
import pkg_resources
from importlib.metadata import version

from filesender.response_types import Guest, Transfer

Expand All @@ -36,8 +36,8 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:

def version_callback(value: bool):
if value:
print(pkg_resources.require("filesender-client")[0].version)
raise Exit()
print(version("filesender-client"))
raise Exit()


@app.callback(context_settings=context)
Expand Down

0 comments on commit c0dceb0

Please sign in to comment.