@task
def authors():
    """
    Updates the AUTHORS file with a list of committers from GIT.
    """
    fmt_re = re.compile(r'([^<]+) <([^>]+)>')
    authors = local('git shortlog -s -e -n | cut -f 2-', capture=True)
    with open('AUTHORS', 'w') as fh:
        fh.write('Project contributors\n')
        fh.write('====================\n\n')
        for line in authors.splitlines():
            match = fmt_re.match(line)
            name, email = match.groups()
            if email in env.ignored_authors:
                continue
            fh.write(' * ')
            fh.write(line)
            fh.write('\n')
dataset/ETHPy150Open GaretJax/sphinx-autobuild/fabtasks/packaging.py/authors/original