diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-01-15 17:16:42 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-01-15 17:48:37 -0700 |
commit | fdbaece7ff06959060d5c10a0e23ecc957b9ff69 (patch) | |
tree | c73f78ff5f1004838194d16ef04c8d69a98e81b1 /tools | |
parent | d9c1a1f91a3983469de7086ff589a6aeaa353b3e (diff) | |
download | python-numpy-fdbaece7ff06959060d5c10a0e23ecc957b9ff69.tar.gz python-numpy-fdbaece7ff06959060d5c10a0e23ecc957b9ff69.tar.bz2 python-numpy-fdbaece7ff06959060d5c10a0e23ecc957b9ff69.zip |
MAINT: Forward port accumulated changes from the 1.12.0 release.
The following files were updated during the NumPy 1.12.0 release
- .mailmap
- doc/release/1.12.0-notes.rst
- tools/announce.py
- pavement.py
and are forward ported to master by this PR.
[ci skip]
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/announce.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/announce.py b/tools/announce.py index 5b40cc3b0..05ea8cb36 100755 --- a/tools/announce.py +++ b/tools/announce.py @@ -110,25 +110,26 @@ def main(token, revision_range): # document authors authors = get_authors(revision_range) - heading = u"Contributors to {0}".format(cur_release) + heading = u"Contributors" print() print(heading) print(u"="*len(heading)) print(author_msg % len(authors)) for s in authors: - print(u'- ' + s) + print(u'* ' + s) # document pull requests pull_requests = get_pull_requests(github_repo, revision_range) - heading = u"Pull requests merged for {0}".format(cur_release) + heading = u"Pull requests merged" + pull_msg = u"* `#{0} <{1}>`__: {2}" + print() print(heading) print(u"="*len(heading)) print(pull_request_msg % len(pull_requests)) for pull in pull_requests: - pull_msg = u"- `#{0} <{1}>`__: {2}" title = re.sub(u"\\s+", u" ", pull.title.strip()) if len(title) > 60: remainder = re.sub(u"\\s.*$", u"...", title[60:]) |