def get_version(dev_version=False):
if dev_version:<EOL><INDENT>version = git_dev_version()<EOL>if not version:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>return version<EOL><DEDENT>return "<STR_LIT>" % (MAJOR, MINOR)<EOL>
Generates a version string.

    Arguments:
        dev_version: Generate a verbose development version from git commits.

    Examples:
        1.1
        1.1.dev43 # If 'dev_version' was passed.