# Path: setup.py
# def srcfile(*args):
#     def initialize_options(self):
#     def finalize_options(self):
#     def run_tests(self):
# def _build_metadata(): # pylint: disable=too-many-locals, too-many-branches
# class PyTest(TestCommand):


import os
import re
import sys
    import sphinx_rtd_theme
from setup import project as meta
sys.path.insert(0, os.path.abspath("../src"))

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:

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

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = '1.3'

# 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.doctest', 'sphinx.ext.coverage',
    'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.

# Path: setup.py
# def srcfile(*args):
#     def initialize_options(self):
#     def finalize_options(self):
#     def run_tests(self):
# def _build_metadata(): # pylint: disable=too-many-locals, too-many-branches
# class PyTest(TestCommand):


# Path: docs/conf.py
import os
import re
import sys
    import sphinx_rtd_theme
from setup import project as meta

sys.path.insert(0, os.path.abspath("../src"))

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:

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

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = '1.3'

# 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.doctest', 'sphinx.ext.coverage',
    'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.

project = meta["name"]