nox: switch from FRAG.md NEWS_FRAGMENT.md for releaserr changelog

This commit is contained in:
Maxwell G 2024-03-02 19:04:57 +00:00
commit 0bf4926bab
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View file

@ -5,7 +5,7 @@
__pycache__/
*.src.rpm
*.tar.gz
/FRAG.md
/NEWS_FRAGMENT.md
/GIT_MSG
/fedora*
# Build directory used to rename files for EPEL 9 usage

View file

@ -105,7 +105,8 @@ def mockbuild(session: nox.Session):
@nox.session
def bump(session: nox.Session):
version = session.posargs[0]
install(session, "releaserr", "fclogr")
# releaserr >= 0.1.dev115: First release that supports NEWS_FRAGMENT.md
install(session, "releaserr >= 0.1.dev115", "fclogr")
session.run("releaserr", "check-tag", version)
session.run(
"fclogr", "bump", "--new", version, "--comment", f"Update to {version}."