Skip to content

Commit

Permalink
__init__: use __version__ instead of VERSION
Browse files Browse the repository at this point in the history
Its more pythonic to use __version__ than VERSION.

Signed-off-by: Anders Roxell <[email protected]>
  • Loading branch information
roxell committed Jun 12, 2024
1 parent 9019164 commit 2b1fb7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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.1'


class KirkException(Exception):
Expand Down
4 changes: 2 additions & 2 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 @@ -351,7 +351,7 @@ def run(cmd_args: list = None) -> None:
"--version",
"-V",
action="version",
version=f"%(prog)s, {libkirk.VERSION}")
version=f"%(prog)s, {__version__}")

# user interface arguments
parser.add_argument(
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

0 comments on commit 2b1fb7e

Please sign in to comment.