Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kirk version #23

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libkirk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


# Kirk version
VERSION = '1.1'
__version__ = '1.3'


class KirkException(Exception):
Expand Down
10 changes: 3 additions & 7 deletions libkirk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import libkirk.data
import libkirk.events
import libkirk.plugin
from libkirk import KirkException
from libkirk import KirkException, __version__
from libkirk.sut import SUT
from libkirk.sut import SUTError
from libkirk.framework import Framework
Expand Down Expand Up @@ -350,8 +350,8 @@ def run(cmd_args: list = None) -> None:
parser.add_argument(
"--version",
"-V",
action="store_true",
help="Print current version")
action="version",
version=f"%(prog)s, {__version__}")

# user interface arguments
parser.add_argument(
Expand Down Expand Up @@ -453,10 +453,6 @@ def run(cmd_args: list = None) -> None:
# parse comand line
args = parser.parse_args(cmd_args)

if args.version:
print(f"kirk {libkirk.VERSION}")
parser.exit(RC_OK)

if args.sut and "help" in args.sut:
print(args.sut["help"])
parser.exit(RC_OK)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='kirk',
version=libkirk.VERSION,
version=libkirk.__version__,
description='All-in-one Linux Testing Framework',
author='Andrea Cervesato',
author_email='[email protected]',
Expand Down
Loading