mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
update pydir call and fix format
This commit is contained in:
parent
57d160cc60
commit
7468883dc0
2 changed files with 4 additions and 7 deletions
|
@ -5,10 +5,9 @@ This changelog follows [keepachangelog](https://keepachangelog.com/en/1.0.0/) fo
|
|||
This project versioning is _similar_ to [Semantic Versioning](https://semver.org), and is documented in [SEP 14](https://github.com/saltstack/salt-enhancement-proposals/pull/20/files).
|
||||
Versions are `MAJOR.PATCH`.
|
||||
|
||||
## 3001 - Sodium
|
||||
# Changelog
|
||||
|
||||
### 3000.1
|
||||
## 3001 - Sodium
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -1091,7 +1091,7 @@ def docs_html(session, compress):
|
|||
if pydir == "py3.4":
|
||||
session.error("Sphinx only runs on Python >= 3.5")
|
||||
requirements_file = "requirements/static/docs.in"
|
||||
distro_constraints = ["requirements/static/{}/docs.txt".format(_get_pydir(session))]
|
||||
distro_constraints = ["requirements/static/{}/docs.txt".format(pydir)]
|
||||
install_command = ["--progress-bar=off", "-r", requirements_file]
|
||||
for distro_constraint in distro_constraints:
|
||||
install_command.extend(["--constraint", distro_constraint])
|
||||
|
@ -1115,7 +1115,7 @@ def docs_man(session, compress, update):
|
|||
if pydir == "py3.4":
|
||||
session.error("Sphinx only runs on Python >= 3.5")
|
||||
requirements_file = "requirements/static/docs.in"
|
||||
distro_constraints = ["requirements/static/{}/docs.txt".format(_get_pydir(session))]
|
||||
distro_constraints = ["requirements/static/{}/docs.txt".format(pydir)]
|
||||
install_command = ["--progress-bar=off", "-r", requirements_file]
|
||||
for distro_constraint in distro_constraints:
|
||||
install_command.extend(["--constraint", distro_constraint])
|
||||
|
@ -1137,8 +1137,6 @@ def changelog(session, draft):
|
|||
"""
|
||||
Generate salt's changelog
|
||||
"""
|
||||
|
||||
pydir = _get_pydir(session)
|
||||
requirements_file = "requirements/static/changelog.in"
|
||||
distro_constraints = [
|
||||
"requirements/static/{}/changelog.txt".format(_get_pydir(session))
|
||||
|
@ -1148,7 +1146,7 @@ def changelog(session, draft):
|
|||
install_command.extend(["--constraint", distro_constraint])
|
||||
session.install(*install_command, silent=PIP_INSTALL_SILENT)
|
||||
|
||||
town_cmd = ["towncrier", "--version={0}".format(session.posargs[0])]
|
||||
town_cmd = ["towncrier", "--version={}".format(session.posargs[0])]
|
||||
if draft:
|
||||
town_cmd.append("--draft")
|
||||
session.run(*town_cmd)
|
||||
|
|
Loading…
Add table
Reference in a new issue