Skip to content

Commit

Permalink
Fix version management
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Nov 25, 2022
1 parent 4530b8a commit 355b4a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tagpack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

try:
# Change here if project is renamed and does not equal the package name
dist_name = "graphsense-tagpack-tool"
dist_name = "tagpack-tool"
__version__ = version(dist_name)
except PackageNotFoundError: # pragma: no cover
__version__ = "unknown"
Expand Down
8 changes: 5 additions & 3 deletions src/tagpack/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from colorama import init
from tabulate import tabulate

from tagpack import __version__ as version
from tagpack import get_version
from tagpack.cmd_utils import (
print_fail,
print_info,
Expand Down Expand Up @@ -423,7 +423,7 @@ def remove_duplicates(args):


def show_version():
return "GraphSense TagPack management tool v" + version
return f"GraphSense TagPack management tool {get_version()}"


def read_url_from_env():
Expand Down Expand Up @@ -466,7 +466,9 @@ def main():

parser = ArgumentParser(
description="GraphSense TagPack validation and insert tool",
epilog="GraphSense TagPack Tool v{} - https://graphsense.info".format(version),
epilog="GraphSense TagPack Tool v{} - https://graphsense.info".format(
get_version()
),
)
parser.add_argument("-v", "--version", action="version", version=show_version())
parser.add_argument(
Expand Down

0 comments on commit 355b4a5

Please sign in to comment.