Skip to content

Commit 4cda63d

Browse files
authored
Update Sphinx and Nox (pypa#591)
1 parent a828073 commit 4cda63d

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ language: python
22
sudo: false
33
python:
44
- 3.6
5-
install: pip install --upgrade nox-automation virtualenv
6-
script: nox -s build
5+
install: python3 -m pip install --upgrade nox virtualenv
6+
script: python3 -m nox -s build

nox.py renamed to noxfile.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@
77
import nox
88

99

10-
@nox.session
10+
@nox.session(py="3")
1111
def build(session, autobuild=False):
12-
session.interpreter = 'python3.6'
13-
session.install('-r', 'requirements.txt')
12+
session.install("-r", "requirements.txt")
1413
# Treat warnings as errors.
15-
session.env['SPHINXOPTS'] = '-W'
16-
session.run(shutil.rmtree, 'build', ignore_errors=True)
14+
session.env["SPHINXOPTS"] = "-W"
15+
16+
shutil.rmtree("build", ignore_errors=True)
1717

1818
if autobuild:
19-
command = 'sphinx-autobuild'
19+
command = "sphinx-autobuild"
2020
else:
21-
command = 'sphinx-build'
21+
command = "sphinx-build"
2222

23-
session.run(command, '-W', '-b', 'html', 'source', 'build')
23+
session.run(command, "-W", "-b", "html", "source", "build")
2424

2525

26-
@nox.session
26+
@nox.session(py="3")
2727
def preview(session):
28-
session.reuse_existing_virtualenv = True
2928
session.install("sphinx-autobuild")
3029
build(session, autobuild=True)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx==1.7.4
1+
sphinx==1.8.3
22
sphinx-autobuild==0.7.1
33
git+https://github.com/python/python-docs-theme.git#egg=python-docs-theme
44
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme

0 commit comments

Comments
 (0)