Verified Commit 9935fa27 authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

Define version as a standard package atribute

parent 529ce200
"""
MOX OTP python package
"""
__version__ = '0.1-alpha'
......@@ -7,12 +7,10 @@ import sys
from .helpers import hash_type_length
from .__init__ import __version__
from .helpers import HASH_TYPE
VERSION = '0.1-alpha'
def type_hexstr(hexstr):
"""Validate and return hex str
"""
......@@ -41,7 +39,7 @@ def parse_args():
parser.add_argument(
"-v", "--version",
action="version",
version="%(prog)s {}".format(VERSION)
version="%(prog)s {}".format(__version__)
)
subparsers = parser.add_subparsers(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment