Skip to content

Commit

Permalink
make changelog entry for 0.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Apr 2, 2021
1 parent 0668148 commit 260331a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
5 changes: 5 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.23.1
------

- fix non-deterministic return order in install() - `494d5c2 <https://github.com/idom-team/idom/commit/494d5c2>`__

0.23.0
------

Expand Down
19 changes: 5 additions & 14 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
import subprocess
from pathlib import Path
from typing import DefaultDict, List, Tuple
from typing import List, Tuple

import nox
from nox.sessions import Session
Expand Down Expand Up @@ -168,26 +168,17 @@ def commits_since_last_tag(session: Session) -> None:
.split("\n")
)

commits: List[Tuple[str, str, str]] = []
for commit_ref in commit_references:
def parse_commit_reference(commit_ref: str) -> Tuple[str, str, str]:
commit_sha, remainder = commit_ref.split(" ", 1)
commit_message, commit_date = remainder[1:-1].rsplit(", ", 1)
commits.append((commit_sha, commit_message, commit_date))
return commit_sha, commit_message, commit_date

commits_by_date: DefaultDict[str, List[str]] = DefaultDict(list)
for sha, msg, date in commits:
for sha, msg, _ in map(parse_commit_reference, commit_references):
if rst_format:
sha_repr = f"`{sha} <https://github.com/idom-team/idom/commit/{sha}>`__"
else:
sha_repr = sha
commits_by_date[date].append(f"{msg} - {sha_repr}")

for date, commits in commits_by_date.items():
print(f"Commits on {date}")
print()
for cmt in commits:
print("-", cmt)
print()
print(f"- {msg} - {sha_repr}")


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

0 comments on commit 260331a

Please sign in to comment.