|
@@ -34,7 +34,11 @@ from sphinx.util.console import red
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
# ones.
|
|
|
-extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage", "sphinx.ext.viewcode"]
|
|
|
+extensions = [
|
|
|
+ "sphinx.ext.autodoc",
|
|
|
+ "sphinx.ext.coverage",
|
|
|
+ "sphinx.ext.viewcode",
|
|
|
+]
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
templates_path = ["_templates"]
|
|
@@ -59,7 +63,7 @@ copyright = "2015-2017, boyska"
|
|
|
# The short X.Y version.
|
|
|
version = "1.3"
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
-release = "1.3.2"
|
|
|
+release = "1.3.3"
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
# for a list of supported languages.
|
|
@@ -276,14 +280,17 @@ def run_apidoc(_):
|
|
|
cmd_path = "sphinx-apidoc"
|
|
|
if hasattr(sys, "real_prefix"): # Are we in a virtualenv?
|
|
|
# assemble the path manually
|
|
|
- cmd_path = os.path.abspath(os.path.join(sys.prefix, "bin", "sphinx-apidoc"))
|
|
|
+ cmd_path = os.path.abspath(
|
|
|
+ os.path.join(sys.prefix, "bin", "sphinx-apidoc")
|
|
|
+ )
|
|
|
if not os.path.exists(cmd_path):
|
|
|
print(red("No apidoc available!"), file=sys.stderr)
|
|
|
return
|
|
|
for module in modules:
|
|
|
try:
|
|
|
subprocess.check_call(
|
|
|
- [cmd_path, "--force", "-o", output_path, module] + exclude_files,
|
|
|
+ [cmd_path, "--force", "-o", output_path, module]
|
|
|
+ + exclude_files,
|
|
|
cwd=proj_dir,
|
|
|
)
|
|
|
except subprocess.CalledProcessError:
|