Only use names in AUTHORS.txt

This commit is contained in:
Devesh Kumar Singh 2020-03-25 22:55:57 +05:30
parent 69cc55831d
commit 30d1870cc7
3 changed files with 543 additions and 563 deletions

File diff suppressed because it is too large Load Diff

1
news/5979.removal Normal file
View File

@ -0,0 +1 @@
Remove emails from AUTHORS.txt to prevent usage for spamming, and only populate names in AUTHORS.txt at time of release

View File

@ -49,8 +49,9 @@ def get_author_list() -> List[str]:
"""Get the list of authors from Git commits.
"""
# subprocess because session.run doesn't give us stdout
# only use names in list of Authors
result = subprocess.run(
["git", "log", "--use-mailmap", "--format=%aN <%aE>"],
["git", "log", "--use-mailmap", "--format=%aN"],
capture_output=True,
encoding="utf-8",
)