@nox.session(name='changelog', python='3')
@nox.parametrize('draft', [False, True])
def changelog(session, draft):
    "\n    Generate salt's changelog\n    "
    if _upgrade_pip_setuptools_and_wheel(session):
        requirements_file = os.path.join('requirements', 'static', 'ci', _get_pydir(session), 'changelog.txt')
        install_command = ['--progress-bar=off', '-r', requirements_file]
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    town_cmd = ['towncrier', '--version={}'.format(session.posargs[0])]
    if draft:
        town_cmd.append('--draft')
    session.run(*town_cmd)
Generate salt's changelog
@nox.session(name='changelog', python='3')
@nox.parametrize('draft', [False, True])
def changelog(session, draft):
    "\n    \n    "
    if _upgrade_pip_setuptools_and_wheel(session):
        requirements_file = os.path.join('requirements', 'static', 'ci', _get_pydir(session), 'changelog.txt')
        install_command = ['--progress-bar=off', '-r', requirements_file]
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    town_cmd = ['towncrier', '--version={}'.format(session.posargs[0])]
    if draft:
        town_cmd.append('--draft')
    session.run(*town_cmd)