Given "1.2.3-6" returns a tuple of (1, 2, 3, 6).
    This is used for sorting versions.

def tupletize_version(version_string):
    '''
    Given "1.2.3-6" returns a tuple of (1, 2, 3, 6).
    This is used for sorting versions.
    '''
    return tuple(int(x) for x in re.findall(r'[0-9]+', version_string))