Skip to content

Commit 384f4d3

Browse files
committed
Build a list of names from every author
1 parent 415012f commit 384f4d3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/announce.py

+11
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ def get_authors(revision_range):
6767
cur.discard('Homu')
6868
pre.discard('Homu')
6969

70+
# Update doc/source/names_wordlist.txt with the names of every author
71+
names = []
72+
[names.extend(re.sub('\W+', ' ', x).split()) for x in cur.union(pre)]
73+
74+
path = os.path.sep.join(os.path.abspath(__file__).split(os.path.sep)[:-2])
75+
wordlist_path = os.path.join(path, 'doc', 'source', 'names_wordlist.txt')
76+
77+
with open(wordlist_path, 'w', encoding='utf-8') as wordlist:
78+
for name in names:
79+
wordlist.write('{}\n'.format(name))
80+
7081
# Append '+' to new authors.
7182
authors = [s + u' +' for s in cur - pre] + [s for s in cur & pre]
7283
authors.sort()

0 commit comments

Comments
 (0)