How to use the rdtools.__version__ function in rdtools

To help you get started, we’ve selected a few rdtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NREL / rdtools / docs / sphinx / source / conf.py View on Github external
# prefer local rdtools folder to one installed in a venv or site-packages:
import os
import sys
sys.path.insert(0, os.path.abspath('../../..'))


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

project = 'RdTools'
copyright = '2016–2019 kwhanalytics, Alliance for Sustainable Energy, LLC, and SunPower'
author = 'kwhanalytics, Alliance for Sustainable Energy, LLC, and SunPower'

# The full version, including alpha/beta/rc tags
import rdtools
release = version = rdtools.__version__


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

# 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.napoleon',
    'sphinx_rtd_theme',
    'sphinx.ext.autosummary',
    'm2r',
    'nbsphinx',
    'nbsphinx_link',
]