def parse_pyproject_array(name):
    import os
    import re
    from ast import literal_eval
    pattern = '^{} = (\\[.*?\\])$'.format(name)
    with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f:
        contents = '\n'.join((line.rstrip() for line in f.readlines()))
    array = re.search(pattern, contents, flags=(re.MULTILINE | re.DOTALL)).group(1)
    return literal_eval(array)
def parse_pyproject_array(name):
    import os
    import re
    from ast import literal_eval
    pattern = '^{} = (\\[.*?\\])$'.format(name)
    with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f:
        contents = '\n'.join((line.rstrip() for line in f.readlines()))
    array = re.search(pattern, contents, flags=(re.MULTILINE | re.DOTALL)).group(1)
    return literal_eval(array)