version bump

This commit is contained in:
boyska 2020-04-23 23:12:31 +02:00
parent 4e685f3425
commit 9e3c2c5194
2 changed files with 12 additions and 5 deletions

View file

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

View file

@ -32,7 +32,7 @@ class PyTest(TestCommand):
setup( setup(
name="larigira", name="larigira",
version="1.3.2", version="1.3.3",
description="A radio automation based on MPD", description="A radio automation based on MPD",
long_description=read("README.rst"), long_description=read("README.rst"),
long_description_content_type="text/x-rst", long_description_content_type="text/x-rst",