Skip to content

Commit

Permalink
Replaced deprecated pkg_resources with importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Oct 28, 2023
1 parent 6e434f4 commit 14201c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sigma/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
except ImportError:
pass

import pkg_resources
import importlib.metadata as metadata
import click
from .list import list_group
from .convert import convert
from .check import check
Expand All @@ -23,7 +24,7 @@ def cli():
@click.command()
def version():
"""Print version of Sigma CLI."""
click.echo(pkg_resources.get_distribution("sigma-cli").version)
click.echo(metadata.version("sigma-cli"))

def main():
cli.add_command(analyze_group)
Expand Down

0 comments on commit 14201c6

Please sign in to comment.