Skip to content

Commit

Permalink
remove deprecated pkg_resources.get_distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi208 committed May 8, 2024
1 parent ed8e353 commit 24eaefc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pypdf_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import click
from pypdf import PdfReader, PdfWriter
from pypdf.errors import PdfReadError
from pkg_resources import get_distribution


# auxiliary functions
Expand Down Expand Up @@ -99,8 +98,8 @@ def write(writer, output):

# click functions

@click.group()
@click.version_option(get_distribution('pypdf-cli').version)
@click.group(invoke_without_command=True, no_args_is_help=True)
@click.version_option()
def cli():
pass

Expand Down

0 comments on commit 24eaefc

Please sign in to comment.