Skip to content

Commit 260331a

Browse files
committed
make changelog entry for 0.23.1
1 parent 0668148 commit 260331a

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

docs/source/changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
0.23.1
5+
------
6+
7+
- fix non-deterministic return order in install() - `494d5c2 <https://github.com/idom-team/idom/commit/494d5c2>`__
8+
49
0.23.0
510
------
611

noxfile.py

+5-14
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import re
55
import subprocess
66
from pathlib import Path
7-
from typing import DefaultDict, List, Tuple
7+
from typing import List, Tuple
88

99
import nox
1010
from nox.sessions import Session
@@ -168,26 +168,17 @@ def commits_since_last_tag(session: Session) -> None:
168168
.split("\n")
169169
)
170170

171-
commits: List[Tuple[str, str, str]] = []
172-
for commit_ref in commit_references:
171+
def parse_commit_reference(commit_ref: str) -> Tuple[str, str, str]:
173172
commit_sha, remainder = commit_ref.split(" ", 1)
174173
commit_message, commit_date = remainder[1:-1].rsplit(", ", 1)
175-
commits.append((commit_sha, commit_message, commit_date))
174+
return commit_sha, commit_message, commit_date
176175

177-
commits_by_date: DefaultDict[str, List[str]] = DefaultDict(list)
178-
for sha, msg, date in commits:
176+
for sha, msg, _ in map(parse_commit_reference, commit_references):
179177
if rst_format:
180178
sha_repr = f"`{sha} <https://github.com/idom-team/idom/commit/{sha}>`__"
181179
else:
182180
sha_repr = sha
183-
commits_by_date[date].append(f"{msg} - {sha_repr}")
184-
185-
for date, commits in commits_by_date.items():
186-
print(f"Commits on {date}")
187-
print()
188-
for cmt in commits:
189-
print("-", cmt)
190-
print()
181+
print(f"- {msg} - {sha_repr}")
191182

192183

193184
def install_idom_dev(session: Session, extras: str = "stable") -> None:

0 commit comments

Comments
 (0)