# Path: setup.py
# PACKAGE_INFO = dict(
#     name="compilertools",
#     description="A library for helping optimizing Python extensions compilation.",
#     long_description_content_type="text/markdown; charset=UTF-8",
#     classifiers=[
#         "Development Status :: 5 - Production/Stable",
#         "Intended Audience :: Developers",
#         "License :: OSI Approved :: BSD License",
#         "Topic :: Software Development :: Build Tools",
#         "Programming Language :: Python",
#         "Programming Language :: Python :: 3",
#         "Programming Language :: Python :: 3.6",
#         "Programming Language :: Python :: 3.7",
#         "Programming Language :: Python :: 3.8",
#         "Programming Language :: Python :: 3.9",
#         "Programming Language :: Python :: 3.10",
#         "Programming Language :: Python :: Implementation :: CPython",
#     ],
#     keywords="compiler distutils setuptools build_ext wheels setup build",
#     author="J.Goutin",
#     url="https://github.com/JGoutin/compilertools",
#     project_urls={
#         "Documentation": "http://compilertools.readthedocs.io/",
#         "Download": "https://pypi.org/project/compilertools",
#     },
#     license="BSD",
#     zip_safe=True,
#     python_requires=">=3.6",
#     setup_requires=["setuptools"],
#     tests_require=["pytest-cov", "pytest-flake8", "pytest-black"],
#     command_options={},
# )


from os.path import abspath, dirname
from setup import PACKAGE_INFO  # noqa: E402
import sys

sys.path.insert(0, abspath(dirname(dirname(__file__))))


SPHINX_INFO = PACKAGE_INFO["command_options"]["build_sphinx"]

project = SPHINX_INFO["project"][1]
copyright = SPHINX_INFO["copyright"][1]
author = PACKAGE_INFO["author"]
version = SPHINX_INFO["version"][1]
release = SPHINX_INFO["release"][1]

extensions = [
    "sphinx.ext.autodoc",
    "sphinx.ext.napoleon",
    "sphinx.ext.coverage",
    "sphinx.ext.viewcode",
]
source_suffix = ".rst"
master_doc = "index"
language = "en"
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "default"
html_theme = "sphinx_rtd_theme"
htmlhelp_basename = f"{project}doc"
latex_elements = {}  # type: ignore
latex_documents = [
    (master_doc, f"{project}.tex", f"{project} Documentation", author, "manual")
]
man_pages = [

# Path: setup.py
# PACKAGE_INFO = dict(
#     name="compilertools",
#     description="A library for helping optimizing Python extensions compilation.",
#     long_description_content_type="text/markdown; charset=UTF-8",
#     classifiers=[
#         "Development Status :: 5 - Production/Stable",
#         "Intended Audience :: Developers",
#         "License :: OSI Approved :: BSD License",
#         "Topic :: Software Development :: Build Tools",
#         "Programming Language :: Python",
#         "Programming Language :: Python :: 3",
#         "Programming Language :: Python :: 3.6",
#         "Programming Language :: Python :: 3.7",
#         "Programming Language :: Python :: 3.8",
#         "Programming Language :: Python :: 3.9",
#         "Programming Language :: Python :: 3.10",
#         "Programming Language :: Python :: Implementation :: CPython",
#     ],
#     keywords="compiler distutils setuptools build_ext wheels setup build",
#     author="J.Goutin",
#     url="https://github.com/JGoutin/compilertools",
#     project_urls={
#         "Documentation": "http://compilertools.readthedocs.io/",
#         "Download": "https://pypi.org/project/compilertools",
#     },
#     license="BSD",
#     zip_safe=True,
#     python_requires=">=3.6",
#     setup_requires=["setuptools"],
#     tests_require=["pytest-cov", "pytest-flake8", "pytest-black"],
#     command_options={},
# )


# Path: doc/conf.py
from os.path import abspath, dirname
from setup import PACKAGE_INFO  # noqa: E402
import sys


sys.path.insert(0, abspath(dirname(dirname(__file__))))


SPHINX_INFO = PACKAGE_INFO["command_options"]["build_sphinx"]

project = SPHINX_INFO["project"][1]
copyright = SPHINX_INFO["copyright"][1]
author = PACKAGE_INFO["author"]
version = SPHINX_INFO["version"][1]
release = SPHINX_INFO["release"][1]

extensions = [
    "sphinx.ext.autodoc",
    "sphinx.ext.napoleon",
    "sphinx.ext.coverage",
    "sphinx.ext.viewcode",
]
source_suffix = ".rst"
master_doc = "index"
language = "en"
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "default"
html_theme = "sphinx_rtd_theme"
htmlhelp_basename = f"{project}doc"
latex_elements = {}  # type: ignore
latex_documents = [
    (master_doc, f"{project}.tex", f"{project} Documentation", author, "manual")
]
man_pages = [

    (master_doc, PACKAGE_INFO["name"], f"{project} Documentation", [author], 1)