Skip to content

Commit

Permalink
Sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed May 30, 2024
1 parent 97e88c3 commit 27ccb7c
Show file tree
Hide file tree
Showing 44 changed files with 3,041 additions and 22 deletions.
103 changes: 103 additions & 0 deletions AUTHORS.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
import math
import subprocess


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]',

# Junk.
'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]',

}

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',
}

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_count = {}
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:
continue

names = name_map.setdefault(email, set())
if isinstance(names, set):
names.add(name)

email_count[email] = email_count.get(email, 0) + 1


last = None
block_i = 0
for email, count in sorted(email_count.items(), key=lambda x: (-x[1], x[0])):

# This is the natural log, because of course it should be. ;)
order = int(math.log(count))
if last and last != order:
block_i += 1
print()
last = order

names = name_map[email]
if isinstance(names, set):
name = ', '.join(sorted(names))
else:
name = names

github = github_map.get(email)

# 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))
else:
print('%s %s <%s>' % ('-*'[block_i % 2], name, email, ))
92 changes: 92 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
Contributors
============

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>`_
- Mark Reid <[email protected]>; `@markreidvfx <https://github.com/markreidvfx>`_

* Vidar Tonaas Fauske <[email protected]>; `@vidartf <https://github.com/vidartf>`_
* laggykiller <[email protected]>; `@laggykiller <https://github.com/laggykiller>`_
* Billy Shambrook <[email protected]>; `@billyshambrook <https://github.com/billyshambrook>`_
* Casper van der Wel <[email protected]>
* Philip de Nier <[email protected]>
* Tadas Dailyda <[email protected]>
* JoeUgly <[email protected]>
* Justin Wong <[email protected]>

- Alba Mendez <[email protected]>
- Mark Harfouche <[email protected]>
- Xinran Xu <[email protected]>; `@xxr3376 <https://github.com/xxr3376>`_
- Dan Allan <[email protected]>; `@danielballan <https://github.com/danielballan>`_
- Dave Johansen <[email protected]>
- Christoph Rackwitz <[email protected]>
- Alireza Davoudi <[email protected]>; `@adavoudi <https://github.com/adavoudi>`_
- Jonathan Drolet <[email protected]>
- Moritz Kassner <[email protected]>; `@mkassner <https://github.com/mkassner>`_
- Santtu Keskinen <[email protected]>
- Thomas A Caswell <[email protected]>; `@tacaswell <https://github.com/tacaswell>`_
- Ulrik Mikaelsson <[email protected]>; `@rawler <https://github.com/rawler>`_
- Wel C. van der <[email protected]>
- Will Patera <[email protected]>; `@willpatera <https://github.com/willpatera>`_

* rutsh <[email protected]>
* Felix Vollmer <[email protected]>
* Santiago Castro <[email protected]>
* Christian Clauss <[email protected]>
* Ihor Liubymov <[email protected]>
* Johannes Erdfelt <[email protected]>
* Karl Litterfeldt <[email protected]>; `@litterfeldt <https://github.com/litterfeldt>`_
* Martin Larralde <[email protected]>
* Simon-Martin Schröder <[email protected]>
* mephi42 <[email protected]>
* Miles Kaufmann <[email protected]>
* Pablo Prietz <[email protected]>
* Radek Senfeld <[email protected]>; `@radek-senfeld <https://github.com/radek-senfeld>`_
* Benjamin Chrétien <[email protected]>
* Marc Mueller <[email protected]>
* zzjjbb <[email protected]>
* Hanz <[email protected]>
* Joe Schiff <[email protected]>
* Artturin <[email protected]>
* Ian Lee <[email protected]>
* Ryan Huang <[email protected]>
* Arthur Barros <[email protected]>
* Carlos Ruiz <[email protected]>
* David Plowman <[email protected]>
* Maxime Desroches <[email protected]>
* egao1980 <[email protected]>
* Eric Kalosa-Kenyon <[email protected]>
* Gemfield <[email protected]>
* Jonathan Martin <[email protected]>
* Johan Jeppsson Karlin <[email protected]>
* Philipp Klaus <[email protected]>
* Mattias Wadman <[email protected]>
* Manuel Goacolou <[email protected]>
* Julian Schweizer <[email protected]>
* Ömer Sezgin Uğurlu <[email protected]>
* Orivej Desh <[email protected]>
* Philipp Krähenbühl <[email protected]>
* ramoncaldeira <[email protected]>
* Roland van Laar <[email protected]>
* Santiago Castro <[email protected]>
* Kengo Sawatsu <[email protected]>
* FirefoxMetzger <[email protected]>
* hyenal <[email protected]>
* Brendan Long <[email protected]>; `@brendanlong <https://github.com/brendanlong>`_
* Семён Марьясин <[email protected]>
* Stephen.Y <[email protected]>
* Tom Flanagan <[email protected]>
* Tim O'Shea <[email protected]>
* Tim Ahpee <[email protected]>
* Jonas Tingeborn <[email protected]>
* Pino Toscano <[email protected]>
* Ulrik Mikaelsson <[email protected]>
* Vasiliy Kotov <[email protected]>
* Koichi Akabe <[email protected]>
* David Joy <[email protected]>
* Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Loading

0 comments on commit 27ccb7c

Please sign in to comment.