-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
102 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,68 @@ | ||
import math | ||
import subprocess | ||
|
||
|
||
print('''Contributors | ||
print( | ||
"""Contributors | ||
============ | ||
All contributors (by number of commits): | ||
''') | ||
""" | ||
) | ||
|
||
|
||
email_map = { | ||
|
||
# Maintainers. | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
|
||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
# Junk. | ||
'mark@mark-VirtualBox.(none)': None, | ||
|
||
"mark@mark-VirtualBox.(none)": None, | ||
# Aliases. | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
'[email protected]': '[email protected]', | ||
|
||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "[email protected]", | ||
} | ||
|
||
name_map = { | ||
'[email protected]': 'Casper van der Wel', | ||
'[email protected]': 'Dan Allan', | ||
'[email protected]': 'Manuel Goacolou', | ||
'[email protected]': 'Mark Reid', | ||
'[email protected]': 'Moritz Kassner', | ||
'[email protected]': 'Vidar Tonaas Fauske', | ||
'[email protected]': 'Xinran Xu', | ||
"[email protected]": "Casper van der Wel", | ||
"[email protected]": "Dan Allan", | ||
"[email protected]": "Manuel Goacolou", | ||
"[email protected]": "Mark Reid", | ||
"[email protected]": "Moritz Kassner", | ||
"[email protected]": "Vidar Tonaas Fauske", | ||
"[email protected]": "Xinran Xu", | ||
} | ||
|
||
github_map = { | ||
'[email protected]': 'billyshambrook', | ||
'[email protected]': 'danielballan', | ||
'[email protected]': 'adavoudi', | ||
'[email protected]': 'mikeboers', | ||
'[email protected]': 'jlaine', | ||
'[email protected]': 'litterfeldt', | ||
'[email protected]': 'markreidvfx', | ||
'[email protected]': 'mkassner', | ||
'[email protected]': 'radek-senfeld', | ||
'[email protected]': 'brendanlong', | ||
'[email protected]': 'tacaswell', | ||
'[email protected]': 'rawler', | ||
'[email protected]': 'vidartf', | ||
'[email protected]': 'willpatera', | ||
'[email protected]': 'xxr3376', | ||
'[email protected]': 'laggykiller', | ||
'[email protected]': 'WyattBlue', | ||
"[email protected]": "billyshambrook", | ||
"[email protected]": "danielballan", | ||
"[email protected]": "adavoudi", | ||
"[email protected]": "mikeboers", | ||
"[email protected]": "jlaine", | ||
"[email protected]": "litterfeldt", | ||
"[email protected]": "markreidvfx", | ||
"[email protected]": "mkassner", | ||
"[email protected]": "radek-senfeld", | ||
"[email protected]": "brendanlong", | ||
"[email protected]": "tacaswell", | ||
"[email protected]": "rawler", | ||
"[email protected]": "vidartf", | ||
"[email protected]": "willpatera", | ||
"[email protected]": "xxr3376", | ||
"[email protected]": "laggykiller", | ||
"[email protected]": "WyattBlue", | ||
} | ||
|
||
|
||
email_count = {} | ||
for line in subprocess.check_output(['git', 'log', '--format=%aN,%aE']).decode().splitlines(): | ||
name, email = line.strip().rsplit(',', 1) | ||
for line in ( | ||
subprocess.check_output(["git", "log", "--format=%aN,%aE"]).decode().splitlines() | ||
): | ||
name, email = line.strip().rsplit(",", 1) | ||
|
||
email = email_map.get(email, email) | ||
if not email: | ||
|
@@ -89,7 +88,7 @@ | |
|
||
names = name_map[email] | ||
if isinstance(names, set): | ||
name = ', '.join(sorted(names)) | ||
name = ", ".join(sorted(names)) | ||
else: | ||
name = names | ||
|
||
|
@@ -98,6 +97,16 @@ | |
# The '-' vs '*' is so that Sphinx treats them as different lists, and | ||
# introduces a gap bettween them. | ||
if github: | ||
print('%s %s <%s>; `@%s <https://github.com/%s>`_' % ('-*'[block_i % 2], name, email, github, github)) | ||
print( | ||
"%s %s <%s>; `@%s <https://github.com/%s>`_" | ||
% ("-*"[block_i % 2], name, email, github, github) | ||
) | ||
else: | ||
print('%s %s <%s>' % ('-*'[block_i % 2], name, email, )) | ||
print( | ||
"%s %s <%s>" | ||
% ( | ||
"-*"[block_i % 2], | ||
name, | ||
email, | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ All contributors (by number of commits): | |
- Mike Boers <[email protected]>; `@mikeboers <https://github.com/mikeboers>`_ | ||
|
||
* Jeremy Lainé <[email protected]>; `@jlaine <https://github.com/jlaine>`_ | ||
* WyattBlue <[email protected]>; `@WyattBlue <https://github.com/WyattBlue>`_ | ||
|
||
- WyattBlue <[email protected]>; `@WyattBlue <https://github.com/WyattBlue>`_ | ||
- Mark Reid <[email protected]>; `@markreidvfx <https://github.com/markreidvfx>`_ | ||
|
||
* Vidar Tonaas Fauske <[email protected]>; `@vidartf <https://github.com/vidartf>`_ | ||
|
@@ -19,11 +19,11 @@ All contributors (by number of commits): | |
* JoeUgly <[email protected]> | ||
* Justin Wong <[email protected]> | ||
|
||
- Alba Mendez <[email protected]> | ||
- Mark Harfouche <[email protected]> | ||
- Alba Mendez <[email protected]> | ||
- Dave Johansen <[email protected]> | ||
- Xinran Xu <[email protected]>; `@xxr3376 <https://github.com/xxr3376>`_ | ||
- Dan Allan <[email protected]>; `@danielballan <https://github.com/danielballan>`_ | ||
- Dave Johansen <[email protected]> | ||
- Moonsik Park <[email protected]> | ||
- Santtu Keskinen <[email protected]> | ||
- Christoph Rackwitz <[email protected]> | ||
|
@@ -35,6 +35,7 @@ All contributors (by number of commits): | |
- Wel C. van der <[email protected]> | ||
- Will Patera <[email protected]>; `@willpatera <https://github.com/willpatera>`_ | ||
|
||
* Dexer <[email protected]> | ||
* rutsh <[email protected]> | ||
* Felix Vollmer <[email protected]> | ||
* Santiago Castro <[email protected]> | ||
|
@@ -55,11 +56,11 @@ All contributors (by number of commits): | |
* zzjjbb <[email protected]> | ||
* Hanz <[email protected]> | ||
* Joe Schiff <[email protected]> | ||
* Dexer <[email protected]> | ||
* Artturin <[email protected]> | ||
* Ian Lee <[email protected]> | ||
* Ryan Huang <[email protected]> | ||
* Arthur Barros <[email protected]> | ||
* Carlos Ruiz <[email protected]> | ||
* Carlos Ruiz <[email protected]> | ||
* David Plowman <[email protected]> | ||
* Maxime Desroches <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters