Skip to content

Commit 434fcd9

Browse files
committed
DOC: Add dates to GitHub statistics pages.
And tweak some of the wording.
1 parent 8680fd5 commit 434fcd9

17 files changed

+54
-53
lines changed

doc/users/github_stats.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats:
22

3-
GitHub statistics
4-
=================
3+
GitHub statistics (Aug 12, 2021)
4+
================================
55

6-
GitHub statistics for 2021/05/08 - 2021/08/12 (tag: v3.4.2)
6+
GitHub statistics for 2021/05/08 (tag: v3.4.2) - 2021/08/12
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.0.2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-0-2:
22

3-
GitHub Stats for Matplotlib 3.0.2
4-
=================================
3+
GitHub statistics for 3.0.2 (Nov 10, 2018)
4+
==========================================
55

6-
GitHub stats for 2018/09/18 - 2018/11/09 (tag: v3.0.0)
6+
GitHub statistics for 2018/09/18 (tag: v3.0.0) - 2018/11/10
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.1.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-1-0:
22

3-
GitHub Stats for Matplotlib 3.1.0
4-
=================================
3+
GitHub statistics for 3.1.0 (May 18, 2019)
4+
==========================================
55

6-
GitHub stats for 2018/09/18 - 2019/05/13 (tag: v3.0.0)
6+
GitHub statistics for 2018/09/18 (tag: v3.0.0) - 2019/05/18
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.1.1.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-1-1:
22

3-
GitHub Stats for Matplotlib 3.1.1
4-
=================================
3+
GitHub statistics for 3.1.1 (Jul 02, 2019)
4+
==========================================
55

6-
GitHub stats for 2019/05/18 - 2019/06/30 (tag: v3.1.0)
6+
GitHub statistics for 2019/05/18 (tag: v3.1.0) - 2019/07/02
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.1.2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-1-2:
22

3-
GitHub Stats for Matplotlib 3.1.2
4-
=================================
3+
GitHub statistics for 3.1.2 (Nov 21, 2019)
4+
==========================================
55

6-
GitHub stats for 2019/05/18 - 2019/06/30 (tag: v3.1.0)
6+
GitHub statistics for 2019/05/18 (tag: v3.1.0) - 2019/11/21
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.2.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-2-0:
22

3-
GitHub Stats for Matplotlib 3.2.0
4-
=================================
3+
GitHub statistics for 3.2.0 (Mar 04, 2020)
4+
==========================================
55

6-
GitHub stats for 2019/05/18 - 2020/03/03 (tag: v3.1.0)
6+
GitHub statistics for 2019/05/18 (tag: v3.1.0) - 2020/03/04
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.2.1.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-2-1:
22

3-
GitHub Stats for Matplotlib 3.2.1
4-
=================================
3+
GitHub statistics for 3.2.1 (Mar 18, 2020)
4+
==========================================
55

6-
GitHub stats for 2020/03/03 - 2020/03/17 (tag: v3.2.0)
6+
GitHub statistics for 2020/03/03 (tag: v3.2.0) - 2020/03/18
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.2.2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-2-2:
22

3-
GitHub Stats for Matplotlib 3.2.2
4-
=================================
3+
GitHub statistics for 3.2.2 (Jun 17, 2020)
4+
==========================================
55

6-
GitHub stats for 2020/03/18 - 2020/06/17 (tag: v3.2.1)
6+
GitHub statistics for 2020/03/18 (tag: v3.2.1) - 2020/06/17
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.3.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-3-0:
22

3-
GitHub Stats for Matplotlib 3.3.0
4-
=================================
3+
GitHub statistics for 3.3.0 (Jul 16, 2020)
4+
==========================================
55

6-
GitHub stats for 2020/03/03 - 2020/07/16 (tag: v3.2.0)
6+
GitHub statistics for 2020/03/03 (tag: v3.2.0) - 2020/07/16
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.3.1.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-3-1:
22

3-
GitHub Stats for Matplotlib 3.3.1
4-
=================================
3+
GitHub statistics for 3.3.1 (Aug 13, 2020)
4+
==========================================
55

6-
GitHub stats for 2020/07/16 - 2020/08/13 (tag: v3.3.0)
6+
GitHub statistics for 2020/07/16 (tag: v3.3.0) - 2020/08/13
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.3.2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-3-2:
22

3-
GitHub Stats for Matplotlib 3.3.2
4-
=================================
3+
GitHub statistics for 3.3.2 (Sep 15, 2020)
4+
==========================================
55

6-
GitHub stats for 2020/08/14 - 2020/09/15 (tag: v3.3.1)
6+
GitHub statistics for 2020/08/14 - 2020/09/15 (tag: v3.3.1)
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.3.3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-3-3:
22

3-
GitHub Stats for Matplotlib 3.3.3
4-
=================================
3+
GitHub statistics for 3.3.3 (Nov 11, 2020)
4+
==========================================
55

6-
GitHub stats for 2020/09/15 - 2020/11/11 (tag: v3.3.2)
6+
GitHub statistics for 2020/09/15 (tag: v3.3.2) - 2020/11/11
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.3.4.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-3-4:
22

3-
GitHub Stats for Matplotlib 3.3.4
4-
=================================
3+
GitHub statistics for 3.3.4 (Jan 28, 2021)
4+
==========================================
55

6-
GitHub stats for 2020/11/12 - 2021/01/28 (tag: v3.3.3)
6+
GitHub statistics for 2020/11/12 (tag: v3.3.3) - 2021/01/28
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.4.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-4-0:
22

3-
GitHub Stats for Matplotlib 3.4.0
4-
=================================
3+
GitHub statistics for 3.4.0 (Mar 26, 2021)
4+
==========================================
55

6-
GitHub stats for 2020/07/16 - 2021/03/25 (tag: v3.3.0)
6+
GitHub statistics for 2020/07/16 (tag: v3.3.0) - 2021/03/26
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.4.1.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-4-1:
22

3-
GitHub Stats for Matplotlib 3.4.1
4-
=================================
3+
GitHub statistics for 3.4.1 (Mar 31, 2021)
4+
==========================================
55

6-
GitHub stats for 2021/03/26 - 2021/03/31 (tag: v3.4.0)
6+
GitHub statistics for 2021/03/26 (tag: v3.4.0) - 2021/03/31
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

doc/users/prev_whats_new/github_stats_3.4.2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _github-stats-3-4-2:
22

3-
GitHub Stats for Matplotlib 3.4.2
4-
=================================
3+
GitHub statistics for 3.4.2 (May 08, 2021)
4+
==========================================
55

6-
GitHub stats for 2021/03/31 - 2021/05/07 (tag: v3.4.1)
6+
GitHub statistics for 2021/03/31 (tag: v3.4.1) - 2021/05/08
77

88
These lists are automatically generated, and may be incomplete or contain duplicates.
99

tools/github_stats.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,18 @@ def report(issues, show_urls=False):
172172

173173
n_issues, n_pulls = map(len, (issues, pulls))
174174
n_total = n_issues + n_pulls
175+
since_day = since.strftime("%Y/%m/%d")
176+
today = datetime.today()
175177

176178
# Print summary report we can directly include into release notes.
177179
print('.. _github-stats:')
178180
print()
179-
print('GitHub statistics')
180-
print('=================')
181+
title = 'GitHub statistics ' + today.strftime('(%b %d, %Y)')
182+
print(title)
183+
print('=' * len(title))
181184

182185
print()
183-
since_day = since.strftime("%Y/%m/%d")
184-
today = datetime.today().strftime("%Y/%m/%d")
185-
print("GitHub statistics for %s - %s (tag: %s)" % (since_day, today, tag))
186+
print("GitHub statistics for %s (tag: %s) - %s" % (since_day, tag, today.strftime("%Y/%m/%d"), ))
186187
print()
187188
print("These lists are automatically generated, and may be incomplete or contain duplicates.")
188189
print()

0 commit comments

Comments
 (0)