Ejemplo n.º 1
0
def pkg_version(package):
    try:
        from importlib.metadata import version as v
    except ImportError:  # < Python 3.8: Use backport module
        from importlib_metadata import version as v
    return version.parse(v(package))
Ejemplo n.º 2
0
def pkg_version(package):
    try:
        from importlib.metadata import version as v
    except ImportError:
        from importlib_metadata import version as v
    return version.parse(v(package))
Ejemplo n.º 3
0
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#

# -- Path setup --------------------------------------------------------------

sys.path.insert(0, os.path.abspath('..'))

# -- Project information -----------------------------------------------------

project = 'bloom'
copyright = '2021, A5rocks'
author = 'A5rocks'
version = v('bloom')
release = version

# -- General configuration ---------------------------------------------------

# silently failing is BAD.
nitpicky = True

# taken from trio's docs
autodoc_inherit_docstrings = False
default_role = 'obj'
autodoc_member_order = 'bysource'
pygments_style = 'default'
highlight_language = 'python3'

# Add any Sphinx extension module names here, as strings. They can be