Skip to content

Commit

Permalink
Generate AUTHORS using git log
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Feb 26, 2014
1 parent 0f7af00 commit 9dcdbb5
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Adam Wentz <[email protected]>
Alex Grönholm <[email protected]> <[email protected]>
Anatoly Techtonik <[email protected]>
Andrey Bulgakov <[email protected]>
Andrei Geacar <[email protected]> unknown <hakaton@Anam-mbl.(none)>
Ben Rosser <[email protected]>
<[email protected]> <[email protected]>
Daniel Holth <[email protected]>
<[email protected]> <[email protected]>
Endoh Takanao <[email protected]>
Erik M. Bray <[email protected]>
Gabriel de Perthuis <[email protected]>
Geoffrey Lehée <[email protected]>
Hsiaoming Yang <[email protected]>
Ilya Baryshev <[email protected]>
Jakub Stasiak <[email protected]>
John-Scott Atlakson <[email protected]>
Jorge Niedbalski <[email protected]>
Markus Hametner <[email protected]>
Masklinn <[email protected]>
Preston Holmes <[email protected]>
Przemek Wrzos <hetmankp@none>
Thomas Johansson <devnull@localhost> prencher <devnull@localhost>
Yoval P <[email protected]>
Zhiping Deng <[email protected]>
34 changes: 24 additions & 10 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
Adam Wentz
Alex Gaynor
Alex Grönholm
Alex Morega
Alexandre Conrad
Anatoly Techtonik
Andrei Geacar
Andrey Bulgakov
Anrs Hu
Anton Patrushev
Antti Kaihola
Armin Ronacher
Aziz Köksal
Ashley Manton
Baptiste Mispelon
Ben Darnell
Ben Rosser
Bernardo B. Marques
Bradley Ayers
Expand All @@ -21,14 +26,15 @@ Craig Kerstiens
Cristian Sorinel
Dan Sully
Daniel Holth
Daniel Jost
Dave Abrahams
David (d1b)
david
David Aguilar
David Evans
David Pursehouse
dengzhp
Dmitry Gladkov
Donald Stufft
Dongweiming
Endoh Takanao
enoch
Erik M. Bray
Expand All @@ -39,22 +45,23 @@ Geoffrey Lehée
George Song
Georgi Valkov
Herbert Pfennig
hetmankp
Hsiaoming Yang
Hugo Lopes Tavares
Hynek Schlawack
Ian Bicking
Igor Sobreira
Ilya Baryshev
Ionel Maries Cristian
Jakub Stasiak
Jakub Vysoky
James Cleveland
Jannis Leidel
Jakub Stasiak
Jay Graves
Jeff Dairiki
Jim Garrison
John-Scott Atlakson
Jon Parise
Jonas Nockert
Jon Parise
Jorge Niedbalski
Josh Bronson
Josh Hansen
Expand All @@ -67,12 +74,13 @@ Kumar McMillan
Lev Givon
Lincoln de Sousa
Luke Macken
Masklinn
Marc Abramowitz
Marc Tamlyn
Marcus Smith
Markus Hametner
Masklinn
Matt Maker
Matthew Iversen
Maxime Rouyrre
Michael Williamson
Miguel Araujo Perez
Expand All @@ -83,8 +91,9 @@ Oliver Tonnhofer
Olivier Girardot
Ollie Rutherfurd
Oren Held
Patrick Jenkins
Oscar Benjamin
Patrick Dubroy
Patrick Jenkins
Paul Moore
Paul Nasrat
Paul Oswald
Expand All @@ -97,6 +106,7 @@ Preston Holmes
Przemek Wrzos
Qiangning Hong
Rafael Caricio
Ralf Schmitt
Rene Dudfield
Roey Berman
Ronny Pfannschmidt
Expand All @@ -106,8 +116,9 @@ Sergey Vasilyev
Seth Woodworth
Simon Cross
Stavros Korokithakis
Stéphane Klein
Stefan Scherfke
Steven Myint
Stéphane Klein
Takayuki SHIMIZUKAWA
Thomas Fenzl
Thomas Johansson
Expand All @@ -117,4 +128,7 @@ Vinay Sajip
Vitaly Babiy
W. Trevor King
Wil Tan
Hsiaoming Yang
Yoval P
Yu Jian
Zearin
Zhiping Deng
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ recursive-include docs *.rst
recursive-include docs *.html
recursive-exclude docs/_build *.rst
prune docs/_build/_sources
prune tasks
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def find_version(*file_paths):
author_email='[email protected]',
url='http://www.pip-installer.org',
license='MIT',
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
packages=find_packages(exclude=["contrib", "docs", "tests*", "tasks"]),
package_data={
'pip._vendor.requests': ['*.pem'],
'pip._vendor.distlib._backport': ['sysconfig.cfg'],
Expand Down
5 changes: 5 additions & 0 deletions tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import invoke

from . import generate

ns = invoke.Collection(generate)
29 changes: 29 additions & 0 deletions tasks/generate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import io

import invoke


@invoke.task
def authors():
print("[generate.authors] Generating AUTHORS")

# Get our list of authors
print("[generate.authors] Collecting author names")
# <%aE>
r = invoke.run("git log --use-mailmap --format'=%aN'", hide=True)
authors = []
seen_authors = set()
for author in r.stdout.splitlines():
author = author.strip()
if author.lower() not in seen_authors:
seen_authors.add(author.lower())
authors.append(author)

# Sort our list of Authors by their case insensitive name
authors = sorted(authors, key=lambda x: x.lower())

# Write our authors to the AUTHORS file
print("[generate.authors] Writing AUTHORS")
with io.open("AUTHORS.txt", "w", encoding="utf8") as fp:
fp.write(u"\n".join(authors))
fp.write(u"\n")

0 comments on commit 9dcdbb5

Please sign in to comment.