1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

Fix duplicate entries in AUTHORS

The generated AUTHORS file contains many duplicates.  If an author
has N commits, there will be N entries for the author in AUTHORS.
Check if an author already exists in the list before appending.
While at it, add a .mailmap (derived from libivrt's .mailmap) to
futher tidy the generated AUTHORS list.
This commit is contained in:
Jim Fehlig 2015-05-11 12:52:15 -06:00
parent 06e8ea4702
commit 7211c4aaa3
2 changed files with 19 additions and 1 deletions

16
.mailmap Normal file
View File

@ -0,0 +1,16 @@
# 'git shortlog --help' and look for mailmap for the format of each line
# Email consolidation:
# <Preferred address in AUTHORS> <other alias used by same author>
<jdenemar@redhat.com> <Jiri.Denemark@gmail.com>
<jfehlig@suse.com> <jfehlig@novell.com>
<stefanb@us.ibm.com> <stefanb@linux.vnet.ibm.com>
# Name consolidation:
# Preferred author spelling <preferred email>
Alex Jia <ajia@redhat.com>
Ján Tomko <jtomko@redhat.com>
MATSUDA Daiki <matsudadik@intellilink.co.jp>
Serge E. Hallyn <serge.hallyn@canonical.com>
Philipp Hahn <hahn@univention.de>

View File

@ -176,7 +176,9 @@ class my_sdist(sdist):
f = os.popen("git log --pretty=format:'%aN <%aE>'")
authors = []
for line in f:
authors.append(" " + line.strip())
line = " " + line.strip()
if line not in authors:
authors.append(line)
authors.sort(key=str.lower)