Mercurial > kallithea
comparison scripts/contributor_data.py @ 7584:050a94de8e7f
scripts: extract contributor data out of update-copyrights.py
... to allow re-use in other scripts, like shortlog.py.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Fri, 15 Mar 2019 21:21:12 +0100 |
parents | |
children | dc1c9c131466 |
comparison
equal
deleted
inserted
replaced
7583:9d972ac5437b | 7584:050a94de8e7f |
---|---|
1 # -*- coding: utf-8 -*- | |
2 | |
3 # Some committers are so wrong that it doesn't point at any contributor: | |
4 total_ignore = set() | |
5 total_ignore.add('*** failed to import extension hggit: No module named hggit') | |
6 total_ignore.add('<>') | |
7 | |
8 # Normalize some committer names where people have contributed under different | |
9 # names or email addresses: | |
10 name_fixes = {} | |
11 name_fixes['Andrew Shadura'] = "Andrej Shadura <andrew@shadura.me>" | |
12 name_fixes['aparkar'] = "Aparkar <aparkar@icloud.com>" | |
13 name_fixes['Aras Pranckevicius'] = "Aras Pranckevičius <aras@unity3d.com>" | |
14 name_fixes['Augosto Hermann'] = "Augusto Herrmann <augusto.herrmann@planejamento.gov.br>" | |
15 name_fixes['"Bradley M. Kuhn" <bkuhn@ebb.org>'] = "Bradley M. Kuhn <bkuhn@sfconservancy.org>" | |
16 name_fixes['dmitri.kuznetsov'] = "Dmitri Kuznetsov" | |
17 name_fixes['Dmitri Kuznetsov'] = "Dmitri Kuznetsov" | |
18 name_fixes['domruf'] = "Dominik Ruf <dominikruf@gmail.com>" | |
19 name_fixes['Ingo von borstel'] = "Ingo von Borstel <kallithea@planetmaker.de>" | |
20 name_fixes['Jan Heylen'] = "Jan Heylen <heyleke@gmail.com>" | |
21 name_fixes['Jason F. Harris'] = "Jason Harris <jason@jasonfharris.com>" | |
22 name_fixes['Jelmer Vernooij'] = "Jelmer Vernooij <jelmer@samba.org>" | |
23 name_fixes['jfh <jason@jasonfharris.com>'] = "Jason Harris <jason@jasonfharris.com>" | |
24 name_fixes['Leonardo Carneiro<leonardo@unity3d.com>'] = "Leonardo Carneiro <leonardo@unity3d.com>" | |
25 name_fixes['leonardo'] = "Leonardo Carneiro <leonardo@unity3d.com>" | |
26 name_fixes['Leonardo <leo@unity3d.com>'] = "Leonardo Carneiro <leonardo@unity3d.com>" | |
27 name_fixes['Les Peabody'] = "Les Peabody <lpeabody@gmail.com>" | |
28 name_fixes['"Lorenzo M. Catucci" <lorenzo@sancho.ccd.uniroma2.it>'] = "Lorenzo M. Catucci <lorenzo@sancho.ccd.uniroma2.it>" | |
29 name_fixes['Lukasz Balcerzak'] = "Łukasz Balcerzak <lukaszbalcerzak@gmail.com>" | |
30 name_fixes['mao <mao@lins.fju.edu.tw>'] = "Ching-Chen Mao <mao@lins.fju.edu.tw>" | |
31 name_fixes['marcink'] = "Marcin Kuźmiński <marcin@python-works.com>" | |
32 name_fixes['Marcin Kuzminski'] = "Marcin Kuźmiński <marcin@python-works.com>" | |
33 name_fixes['nansenat16@null.tw'] = "nansenat16 <nansenat16@null.tw>" | |
34 name_fixes['Peter Vitt'] = "Peter Vitt <petervitt@web.de>" | |
35 name_fixes['philip.j@hostdime.com'] = "Philip Jameson <philip.j@hostdime.com>" | |
36 name_fixes['Søren Løvborg'] = "Søren Løvborg <sorenl@unity3d.com>" | |
37 name_fixes['Thomas De Schampheleire'] = "Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>" | |
38 name_fixes['Weblate'] = "<>" | |
39 name_fixes['xpol'] = "xpol <xpolife@gmail.com>" | |
40 name_fixes['Lars <devel@sumpfralle.de>'] = "Lars Kruse <devel@sumpfralle.de>" | |
41 | |
42 # Some committer email address domains that indicate that another entity might | |
43 # hold some copyright too: | |
44 domain_extra = {} | |
45 domain_extra['unity3d.com'] = "Unity Technologies" | |
46 domain_extra['rhodecode.com'] = "RhodeCode GmbH" | |
47 | |
48 # Repository history show some old contributions that traditionally hasn't been | |
49 # listed in about.html - preserve that: | |
50 no_about = set(total_ignore) | |
51 # The following contributors were traditionally not listed in about.html and it | |
52 # seems unclear if the copyright is personal or belongs to a company. | |
53 no_about.add(('Thayne Harbaugh <thayne@fusionio.com>', '2011')) | |
54 no_about.add(('Dies Koper <diesk@fast.au.fujitsu.com>', '2012')) | |
55 no_about.add(('Erwin Kroon <e.kroon@smartmetersolutions.nl>', '2012')) | |
56 no_about.add(('Vincent Caron <vcaron@bearstech.com>', '2012')) | |
57 # These contributors' contributions might be too small to be copyrightable: | |
58 no_about.add(('philip.j@hostdime.com', '2012')) | |
59 no_about.add(('Stefan Engel <mail@engel-stefan.de>', '2012')) | |
60 no_about.add(('Ton Plomp <tcplomp@gmail.com>', '2013')) | |
61 # Was reworked and contributed later and shadowed by other contributions: | |
62 no_about.add(('Sean Farley <sean.michael.farley@gmail.com>', '2013')) | |
63 | |
64 # Preserve contributors listed in about.html but not appearing in repository | |
65 # history: | |
66 other_about = [ | |
67 ("2011", "Aparkar <aparkar@icloud.com>"), | |
68 ("2010", "RhodeCode GmbH"), | |
69 ("2011", "RhodeCode GmbH"), | |
70 ("2012", "RhodeCode GmbH"), | |
71 ("2013", "RhodeCode GmbH"), | |
72 ] | |
73 | |
74 # Preserve contributors listed in CONTRIBUTORS but not appearing in repository | |
75 # history: | |
76 other_contributors = [ | |
77 ("", "Andrew Kesterson <andrew@aklabs.net>"), | |
78 ("", "cejones"), | |
79 ("", "David A. Sjøen <david.sjoen@westcon.no>"), | |
80 ("", "James Rhodes <jrhodes@redpointsoftware.com.au>"), | |
81 ("", "Jonas Oberschweiber <jonas.oberschweiber@d-velop.de>"), | |
82 ("", "larikale"), | |
83 ("", "RhodeCode GmbH"), | |
84 ("", "Sebastian Kreutzberger <sebastian@rhodecode.com>"), | |
85 ("", "Steve Romanow <slestak989@gmail.com>"), | |
86 ("", "SteveCohen"), | |
87 ("", "Thomas <thomas@rhodecode.com>"), | |
88 ("", "Thomas Waldmann <tw-public@gmx.de>"), | |
89 ] |