Skip to content

Commit

Permalink
doc: update contributor list (#4910)
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Sep 21, 2022
1 parent 1e98d5d commit 529475a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 13 deletions.
40 changes: 32 additions & 8 deletions README.md
Expand Up @@ -162,44 +162,62 @@ This list is generated by `chore/generate-contributor-list.py`. If you're not li
* adamjryan
* Alcides Fonseca
* Alexander Shopov
* André Cruz
* Aman Sharma
* andrewbwogi
* André Cruz
* André Silva
* Antoine Mottier
* Anton Lyxell
* argius
* Arnaud Blouin
* arsenkhy
* Artamm
* Artur Bosch
* aryan
* Ashutosh Kumar Verma
* aveuiller
* Benoit Cornu
* Axel Howind
* Benjamin DANGLOT
* César Soto Valero
* Benoit Cornu
* Carlos Noguera
* Ceki Gülcü
* Charm
* ChrisSquare
* Christophe Dufour
* Christopher Stokes
* Clemens Bartz
* Clément Fournier
* César Soto Valero
* Darius Sas
* David Bernard
* Didier Donsez
* Diorcet Yann
* dufaux
* dwayneb
* dya-tel
* Eddie T
* Egor Bredikhin
* Fabien DUMINY
* fangzhen
* Fan Long
* fangzhen
* fav
* Favio DeMarco
* Fernanda Madeiral
* Filip Krakowski
* Gérard Paligot
* Gabriel Chaperon Burgos
* gibahjoe
* GluckZhang
* Gregor Zeitlinger
* gtoison
* Guillaume Toison
* Gérard Paligot
* Hannes Greule
* Haris Adzemovic
* HectorSM
* Henry Chu
* Horia Constantin
* I-Al-Istannen
* intrigus-lgtm
* jakobbraun
* Jan Galinski
* jon
Expand All @@ -215,25 +233,27 @@ This list is generated by `chore/generate-contributor-list.py`. If you're not li
* Martin Monperrus
* MartinWitt
* Matias Martinez
* Maxime CLEMENT
* Maxim Stefanov
* Maxime CLEMENT
* Mehdi Kaytoue
* Michael Täge
* Mickael Istria
* Miguel Sozinho Ramalho
* Mikael Forsberg
* Muhammet Ali AKBAY
* Nicolas Harrand
* Nicolas Pessemier
* Nicolas Petitprez
* Noah Santschi-Cooney
* Carlos Noguera
* Olivier Barais
* Ondřej Šebek
* Pavel Vojtechovsky
* peroksid90
* Phillip Schichtel
* Quentin LE DILAVREC
* raymogg
* Renaud Pawlak
* Reza Gharibi
* Rhys Compton
* Rick Kellogg
* Rijnard van Tonder
Expand All @@ -243,18 +263,22 @@ This list is generated by `chore/generate-contributor-list.py`. If you're not li
* scootafew
* Scott Dickerson
* Scott Pinwell
* Sébastien Bertrand
* Sebastian Lamelas Marcote
* Sergey Fedorov
* Shantanu
* Simon Larsén
* Simon Urli
* Spencer Williams
* srlm
* ST0NEWALL
* Stefan Wolf
* Sébastien Bertrand
* Thimo Seitz
* Thomas Durieux
* tiagodrcarvalho
* Tomasz Zieliński
* Urs Keller
* Viktor
* Vincenzo Musco
* Wolfgang Schmiesing
* Wouter Smeenk
Expand Down
26 changes: 21 additions & 5 deletions chore/generate-contributor-list.py
@@ -1,13 +1,12 @@
#!/usr/bin/python
#!/usr/bin/python3
"""
Generate the contributor list for the readme of Spoon at https://github.com/INRIA/spoon/
"""

import subprocess

def get_raw_contributors():
# git log --pretty="%an" | sort -u
result = subprocess.run(['sh', '-c', 'git log --pretty="%an" | sort -u'], stdout=subprocess.PIPE)
result = subprocess.run(['sh', '-c', 'git log --pretty="%an"'], stdout=subprocess.PIPE)
return result.stdout.decode('utf-8').split("\n")


Expand Down Expand Up @@ -46,9 +45,26 @@ def clean(raw_contributors):
if i == 'Spoon Bot': continue
if i == 'renovate[bot]': continue

# uniqify
cleaned = list(set(cleaned))
cleaned.append(name)
return cleaned
def format_to_md(contributors):
return '\n'.join(["* "+x for x in contributors])
return '\n'.join(sorted(["* "+x for x in contributors], key=str.casefold))

print(format_to_md(clean(get_raw_contributors())))
def early_contributors():
""" they are not in the Git history"""
return ['Olivier Barais',
'David Bernard',
'Benoit Cornu',
'Favio DeMarco',
'Didier Donsez',
'Christophe Dufour',
'Sebastian Lamelas Marcote',
'Matias Martinez',
'Carlos Noguera',
'Renaud Pawlak',
'Nicolas Pessemier']


print(format_to_md(clean(get_raw_contributors()+early_contributors())))

0 comments on commit 529475a

Please sign in to comment.