mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Update the changelog
nox session to redirect to tools
and warn about new usage
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
e547b2d8c7
commit
640f850bd9
1 changed files with 9 additions and 7 deletions
16
noxfile.py
16
noxfile.py
|
@ -1629,20 +1629,22 @@ def changelog(session, draft, force):
|
|||
"""
|
||||
Generate salt's changelog
|
||||
"""
|
||||
session_warn(
|
||||
session,
|
||||
"Please stop using this nox session and start using the 'tools' command shown below.",
|
||||
)
|
||||
if _upgrade_pip_setuptools_and_wheel(session):
|
||||
requirements_file = os.path.join(
|
||||
"requirements", "static", "ci", _get_pydir(session), "changelog.txt"
|
||||
"requirements", "static", "ci", _get_pydir(session), "tools.txt"
|
||||
)
|
||||
install_command = ["--progress-bar=off", "-r", requirements_file]
|
||||
session.install(*install_command, silent=PIP_INSTALL_SILENT)
|
||||
|
||||
town_cmd = ["towncrier", "build", "--version={}".format(session.posargs[0])]
|
||||
cmd = ["tools", "changelog", "update-changelog-md"]
|
||||
if draft:
|
||||
town_cmd.append("--draft")
|
||||
if force:
|
||||
# Do not ask, just remove news fragments
|
||||
town_cmd.append("--yes")
|
||||
session.run(*town_cmd)
|
||||
cmd.append("--draft")
|
||||
cmd.append(session.posargs[0])
|
||||
session.run(*cmd)
|
||||
|
||||
|
||||
class Recompress:
|
||||
|
|
Loading…
Add table
Reference in a new issue