Revision 9b99f6adefd2e81e8639fd0ec696dd0402c4659e authored by Maria Khrustaleva on 09 January 2024, 11:17:09 UTC, committed by GitHub on 09 January 2024, 11:17:09 UTC
The distutils module is [deprecated](https://peps.python.org/pep-0632) and will be removed from the standard library in Python 3.12.
1 parent 64d6d7a
gh_release_notes.sh
#!/bin/sh
# This script takes the release notes for the most recent release
# and reformats them for use in GitHub.
# In GitHub PR and release descriptions, a single line break is
# equivalent to <br>, so we pipe the text through pandoc to unwrap all lines.
set -eu
repo_root="$(dirname "$0")/.."
awk '/^## / { hn += 1; next } hn == 1 && !/^</' "$repo_root/CHANGELOG.md" \
| pandoc -f gfm -t gfm --wrap=none
Computing file changes ...