Skip to content

Commit 74a3b47

Browse files
authored
🩹Fix local tox -e docs (#725)
1 parent 3fd4553 commit 74a3b47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎docs/conf.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@
4949

5050
try:
5151
import sphinx
52-
from pkg_resources import parse_version
5352

5453
cmd_line_template = "sphinx-apidoc -f -o {outputdir} {moduledir}"
5554
cmd_line = cmd_line_template.format(outputdir=output_dir, moduledir=module_dir)
5655

5756
args = cmd_line.split(" ")
58-
if parse_version(sphinx.__version__) >= parse_version("1.7"):
59-
args = args[1:]
57+
args = args[1:]
6058

6159
apidoc.main(args)
6260
except Exception as e:

0 commit comments

Comments
 (0)