]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add script to generate the AUTHORS file and regenerate it
authorAarni Koskela <akx@iki.fi>
Fri, 2 Feb 2018 16:45:19 +0000 (18:45 +0200)
committerAarni Koskela <akx@iki.fi>
Fri, 2 Feb 2018 16:45:19 +0000 (18:45 +0200)
AUTHORS
scripts/generate_authors.py [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index b9208fe597771e81a03acdf36e2022f803e66034..58a9bee280e1a049ea964179fe6149f6ac6ca12d 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,25 +1,99 @@
-Babel is written and maintained by the Babel team and various contributors:
-
-Maintainer and Current Project Lead:
 
-- Armin Ronacher <armin.ronacher@active-4.com>
-
-Contributors:
+Babel is written and maintained by the Babel team and various contributors:
 
-- Christopher Lenz <cmlenz@gmail.com>
-- Alex Morega <alex@grep.ro>
-- Felix Schwarz <felix.schwarz@oss.schwarz.eu>
-- Pedro Algarvio <pedro@algarvio.me>
-- Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
-- Philip Jenvey <pjenvey@underboss.org>
-- Tobias Bieniek <Tobias.Bieniek@gmx.de>
-- Jonas Borgström <jonas@edgewall.org>
-- Daniel Neuhäuser <dasdasich@gmail.com>
-- Nick Retallack <nick@bitcasa.com>
-- Thomas Waldmann <tw@waldmann-edv.de>
-- Lennart Regebro <regebro@gmail.com>
-- Isaac Jurado <diptongo@gmail.com>
-- Craig Loftus <craig@regulusweb.com>
+- Christopher Lenz
+- Armin Ronacher
+- Aarni Koskela
+- Alex Morega
+- Lasse Schuirmann
+- Felix Schwarz
+- Pedro Algarvio
+- Jeroen Ruigrok van der Werven
+- Philip Jenvey
+- benselme
+- Isaac Jurado
+- Tobias Bieniek
+- Erick Wilder
+- Michael Birtwell
+- Jonas Borgström
+- Kevin Deldycke
+- Ville Skyttä
+- Hugo
+- Heungsub Lee
+- Jakob Schnitzer
+- Sachin Paliwal
+- Alex Willmer
+- Daniel Neuhäuser
+- Jennifer Wang
+- Lukas Balaga
+- sudheesh001
+- Jon Dufresne
+- Xavier Fernandez
+- KO. Mattsson
+- Sébastien Diemer
+- alexbodn@gmail.com
+- saurabhiiit
+- srisankethu
+- Erik Romijn
+- Lukas B
+- Ryan J Ollos
+- Arturas Moskvinas
+- Leonardo Pistone
+- Jun Omae
+- Hyunjun Kim
+- xmo-odoo
+- StevenJ
+- Jungmo Ku
+- Simeon Visser
+- Narendra Vardi
+- Stefane Fermigier
+- Narayan Acharya
+- François Magimel
+- Wolfgang Doll
+- Roy Williams
+- Marc-André Dufresne
+- Abhishek Tiwari
+- David Baumgold
+- Alex Kuzmenko
+- Georg Schölly
+- ldwoolley
+- Rodrigo Ramírez Norambuena
+- Jakub Wilk
+- Roman Rader
+- Max Shenfield
+- Nicolas Grilly
+- Kenny Root
+- Adam Chainz
+- Sébastien Fievet
+- Anthony Sottile
+- Yuriy Shatrov
+- iamshubh22
+- Sven Anderson
+- Eoin Nugent
+- Roman Imankulov
+- David Stanek
+- Roy Wellington Ⅳ
+- Florian Schulze
+- Todd M. Guerra
+- Joseph Breihan
+- Craig Loftus
+- The Gitter Badger
+- Régis Behmo
+- Julen Ruiz Aizpuru
+- astaric
+- Felix Yan
+- Philip_Tzou
+- Jesús Espino
+- Jeremy Weinstein
+- James Page
+- masklinn
+- Sjoerd Langkemper
+- Matt Iversen
+- Alexander A. Dyshev
+- Dirkjan Ochtman
+- Nick Retallack
+- Thomas Waldmann
+- xen
 
 Babel was previously developed under the Copyright of Edgewall Software.  The
 following copyright notice holds true for releases before 2013: "Copyright (c)
diff --git a/scripts/generate_authors.py b/scripts/generate_authors.py
new file mode 100644 (file)
index 0000000..409f24e
--- /dev/null
@@ -0,0 +1,40 @@
+from collections import Counter
+from subprocess import check_output
+
+import os
+
+root_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
+
+
+def get_sorted_authors_list():
+    authors = check_output(['git', 'log', '--format=%aN'], cwd=root_path).decode('UTF-8')
+    counts = Counter(authors.splitlines())
+    return [author for (author, count) in counts.most_common()]
+
+
+def get_authors_file_content():
+    author_list = '\n'.join('- %s' % a for a in get_sorted_authors_list())
+
+    return '''
+Babel is written and maintained by the Babel team and various contributors:
+
+{author_list}
+
+Babel was previously developed under the Copyright of Edgewall Software.  The
+following copyright notice holds true for releases before 2013: "Copyright (c)
+2007 - 2011 by Edgewall Software"
+
+In addition to the regular contributions Babel includes a fork of Lennart
+Regebro's tzlocal that originally was licensed under the CC0 license.  The
+original copyright of that project is "Copyright 2013 by Lennart Regebro".
+'''.format(author_list=author_list)
+
+
+def write_authors_file():
+    content = get_authors_file_content()
+    with open(os.path.join(root_path, 'AUTHORS'), 'w', encoding='UTF-8') as fp:
+        fp.write(content)
+
+
+if __name__ == '__main__':
+    write_authors_file()