Skip to content

Commit e58a3a9

Browse files
committed
Add v2.0.0b9 release notes
1 parent 28e9cf4 commit e58a3a9

File tree

2 files changed

+49
-8
lines changed

2 files changed

+49
-8
lines changed

doc/changelog.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
Changelog
22
=========
33

4+
v2.0.0b9
5+
--------
46

5-
For older releases, see the release notes on https://github.com/ESMValGroup/ESMValCore/releases.
7+
This release includes
8+
9+
Bug fixes
10+
~~~~~~~~~
11+
12+
- Cast dtype float32 to output from zonal and meridional area preprocessors (`#581 <https://github.com/ESMValGroup/ESMValCore/pull/581>`__) `Valeriu Predoi <https://github.com/valeriupredoi>`__
13+
14+
Improvements
15+
~~~~~~~~~~~~
16+
17+
- Unpin on Python<3.8 for conda package (run) (`#570 <https://github.com/ESMValGroup/ESMValCore/pull/570>`__) `Valeriu Predoi <https://github.com/valeriupredoi>`__
18+
- Update pytest installation marker (`#572 <https://github.com/ESMValGroup/ESMValCore/pull/572>`__) `Bouwe Andela <https://github.com/bouweandela>`__
19+
- Remove vmrh2o (`#573 <https://github.com/ESMValGroup/ESMValCore/pull/573>`__) `Mattia Righi <https://github.com/mattiarighi>`__
20+
- Restructure documentation (`#575 <https://github.com/ESMValGroup/ESMValCore/pull/575>`__) `Bouwe Andela <https://github.com/bouweandela>`__
21+
- Fix mask in land variables for CCSM4 (`#579 <https://github.com/ESMValGroup/ESMValCore/pull/579>`__) `Klaus Zimmermann <https://github.com/zklaus>`__
22+
- Fix derive scripts wrt required method (`#585 <https://github.com/ESMValGroup/ESMValCore/pull/585>`__) `Klaus Zimmermann <https://github.com/zklaus>`__
23+
- Check coordinates do not have repeated standard names (`#558 <https://github.com/ESMValGroup/ESMValCore/pull/558>`__) `Javier Vegas-Regidor <https://github.com/jvegasbsc>`__
24+
- Added derivation script for co2s (`#587 <https://github.com/ESMValGroup/ESMValCore/pull/587>`__) `Manuel Schlund <https://github.com/schlunma>`__
25+
- Adapted custom co2s table to match CMIP6 version (`#588 <https://github.com/ESMValGroup/ESMValCore/pull/588>`__) `Manuel Schlund <https://github.com/schlunma>`__
26+
- Increase version to v2.0.0b9 (`#593 <https://github.com/ESMValGroup/ESMValCore/pull/593>`__) `Bouwe Andela <https://github.com/bouweandela>`__
27+
- Add a method to save citation information (`#402 <https://github.com/ESMValGroup/ESMValCore/pull/402>`__) `SarahAlidoost <https://github.com/SarahAlidoost>`__
28+
29+
For older releases, see the release notes on https://github.com/ESMValGroup/ESMValCore/releases.

esmvalcore/utils/draft_release_notes.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@
2222
"~/.github_api_key, see:\nhttps://help.github.com/en/github/"
2323
"authenticating-to-github/creating-a-personal-access-token-"
2424
"for-the-command-line")
25+
26+
from esmvalcore import __version__
27+
28+
VERSION = f"v{__version__}"
2529
GITHUB_REPO = "ESMValGroup/ESMValCore"
2630

31+
TITLES = {
32+
'bug': 'Bug fixes',
33+
'enhancement': 'Improvements',
34+
}
35+
2736

2837
def draft_notes_since(previous_release_date, labels):
2938
"""Draft release notes containing the merged pull requests.
@@ -57,26 +66,34 @@ def draft_notes_since(previous_release_date, labels):
5766

5867
user = pull.user
5968
username = user.login if user.name is None else user.name
60-
line = (f"- {pull.title} (#{pull.number}) "
61-
f"[{username}](https://github.com/{user.login})")
69+
line = (
70+
f"- {pull.title} (`#{pull.number} "
71+
f"<https://github.com/{GITHUB_REPO}/pull/{pull.number}>`__) "
72+
f"`{username} <https://github.com/{user.login}>`__")
6273
if label not in lines:
6374
lines[label] = []
6475
lines[label].append((pull.closed_at, line))
6576

6677
# Create sections
67-
sections = ["This release includes"]
78+
sections = [
79+
VERSION,
80+
'-' * len(VERSION),
81+
'',
82+
"This release includes",
83+
]
6884
for label in sorted(lines):
69-
sections.append('\n' + label)
70-
lines[label].sort() # sort by merge time
71-
sections.append('\n'.join(line for _, line in lines[label]))
85+
entries = sorted(lines[label]) # sort by merge time
86+
label = TITLES.get(label, label)
87+
sections.append('\n'.join(['', label, '~' * len(label), '']))
88+
sections.append('\n'.join(entry for _, entry in entries))
7289
notes = '\n'.join(sections)
7390

7491
print(notes)
7592

7693

7794
if __name__ == '__main__':
7895

79-
PREVIOUS_RELEASE = datetime.datetime(2020, 1, 17)
96+
PREVIOUS_RELEASE = datetime.datetime(2020, 3, 6)
8097
LABELS = ('bug', 'fix for dataset')
8198

8299
draft_notes_since(PREVIOUS_RELEASE, LABELS)

0 commit comments

Comments
 (0)