src/catedit/version.py
author ymh <ymh.work@gmail.com>
Wed, 14 Aug 2024 22:08:14 +0200
changeset 142 640fb0f13022
parent 138 406ccdef913b
permissions -rw-r--r--
server and docker migration

"""
    version.py:
    Module to get the current CatEdit version, the only place where we have to
    increment version numbers
"""

__all__ = ["VERSION", "get_version", "CURRENT_VERSION"]

VERSION = (0, 2, 7)

def get_version():
    """
        Function to convert the tuple to a string
    """
    version = "%s.%s" % (VERSION[0], VERSION[1])
    if version[2]:
        version = "%s.%s" % (version, VERSION[2])
    return version

CURRENT_VERSION = get_version()