We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbb683 commit 478b058Copy full SHA for 478b058
scripts/announce.py
@@ -67,6 +67,17 @@ def get_authors(revision_range):
67
cur.discard('Homu')
68
pre.discard('Homu')
69
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
81
# Append '+' to new authors.
82
authors = [s + u' +' for s in cur - pre] + [s for s in cur & pre]
83
authors.sort()
0 commit comments