def read_toml_version(relpath):
    res = regex_matches(relpath, rex)
    if (res is not None):
        return res.group(1)
    raise ValueError('no version found in {}'.format(relpath))
def read_toml_version(relpath):
    res = regex_matches(relpath, rex)
    if (res is not None):
        return res.group(1)
    raise ValueError('no version found in {}'.format(relpath))