def METHOD_NAME(self, version):
    res = []
    for p in re.split("[.-]|(alpha|beta)", version):
        if p is None:
            continue
        try:
            res.append(int(p))
            continue
        except ValueError:
            res.append(p)
    return tuple(res)