Skip to content

Commit d73ded0

Browse files
DOC: Update 1.0.1 release notes (#31699)
1 parent 2f9a446 commit d73ded0

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

doc/source/whatsnew/v1.0.1.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_101:
22

3-
What's new in 1.0.1 (??)
4-
------------------------
3+
What's new in 1.0.1 (February 5, 2020)
4+
--------------------------------------
55

66
These are the changes in pandas 1.0.1. See :ref:`release` for a full changelog
77
including other versions of pandas.
@@ -74,3 +74,5 @@ Bug fixes
7474

7575
Contributors
7676
~~~~~~~~~~~~
77+
78+
.. contributors:: v0.25.3..v1.0.1|HEAD

doc/sphinxext/announce.py

+10
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ def get_authors(revision_range):
5757
pat = "^.*\\t(.*)$"
5858
lst_release, cur_release = [r.strip() for r in revision_range.split("..")]
5959

60+
if "|" in cur_release:
61+
# e.g. v1.0.1|HEAD
62+
maybe_tag, head = cur_release.split("|")
63+
assert head == "HEAD"
64+
if maybe_tag in this_repo.tags:
65+
cur_release = maybe_tag
66+
else:
67+
cur_release = head
68+
revision_range = f"{lst_release}..{cur_release}"
69+
6070
# authors, in current release and previous to current release.
6171
cur = set(re.findall(pat, this_repo.git.shortlog("-s", revision_range), re.M))
6272
pre = set(re.findall(pat, this_repo.git.shortlog("-s", lst_release), re.M))

doc/sphinxext/contributors.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
77
This will be replaced with a message indicating the number of
88
code contributors and commits, and then list each contributor
9-
individually.
9+
individually. For development versions (before a tag is available)
10+
use::
11+
12+
.. contributors:: v0.23.0..v0.23.1|HEAD
13+
14+
While the v0.23.1 tag does not exist, that will use the HEAD of the
15+
branch as the end of the revision range.
1016
"""
1117
from announce import build_components
1218
from docutils import nodes

0 commit comments

Comments
 (0)