aboutsummaryrefslogtreecommitdiff
path: root/dev/create-release/generate-contributors.py
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2014-12-16 22:11:03 -0800
committerAndrew Or <andrew@databricks.com>2014-12-16 22:14:18 -0800
commit4e1112e7b0f52e7f59cc42025f300fa8124eb9b2 (patch)
treeb8538ccf29f539878018573a19182de1f933b13f /dev/create-release/generate-contributors.py
parent60698801ebc4c4947cfc7f46762a7cca2ed40452 (diff)
downloadspark-4e1112e7b0f52e7f59cc42025f300fa8124eb9b2.tar.gz
spark-4e1112e7b0f52e7f59cc42025f300fa8124eb9b2.tar.bz2
spark-4e1112e7b0f52e7f59cc42025f300fa8124eb9b2.zip
[Release] Update contributors list format and sort it
Additionally, we now warn the user when a duplicate author name arises, in which case he/she needs to resolve it manually.
Diffstat (limited to 'dev/create-release/generate-contributors.py')
-rwxr-xr-xdev/create-release/generate-contributors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/create-release/generate-contributors.py b/dev/create-release/generate-contributors.py
index e65c5d8233..8aaa250bd7 100755
--- a/dev/create-release/generate-contributors.py
+++ b/dev/create-release/generate-contributors.py
@@ -192,9 +192,9 @@ for commit in filtered_commits:
print "==================================================================================\n"
# Write to contributors file ordered by author names
-# Each line takes the format "Author name - semi-colon delimited contributions"
-# e.g. Andrew Or - Bug fixes in Windows, Core, and Web UI; improvements in Core
-# e.g. Tathagata Das - Bug fixes and new features in Streaming
+# Each line takes the format " * Author name -- semi-colon delimited contributions"
+# e.g. * Andrew Or -- Bug fixes in Windows, Core, and Web UI; improvements in Core
+# e.g. * Tathagata Das -- Bug fixes and new features in Streaming
contributors_file = open(contributors_file_name, "w")
authors = author_info.keys()
authors.sort()
@@ -223,7 +223,7 @@ for author in authors:
# E.g. andrewor14/SPARK-3425/SPARK-1157/SPARK-6672
if author in invalid_authors and invalid_authors[author]:
author = author + "/" + "/".join(invalid_authors[author])
- line = "%s - %s" % (author, contribution)
+ line = " * %s -- %s" % (author, contribution)
contributors_file.write(line + "\n")
contributors_file.close()
print "Contributors list is successfully written to %s!" % contributors_file_name