import os
from setuptools import setup, find_packages
import versioneer


if __name__ == "__main__":

    def read(fname):
        return open(os.path.join(os.path.dirname(__file__), fname)).read()

    meta = {}
    base_dir = os.path.dirname(os.path.abspath(__file__))
    with open(os.path.join(base_dir, 'gammy', '_meta.py')) as fp:
        exec(fp.read(), meta)


    setup(
        name         = "gammy",
        version      = versioneer.get_version(),
        author       = meta["__author__"],
        author_email = meta["__contact__"],
        description  = "Generalized additive models with a Bayesian twist",
        url          = "https://github.com/malmgrek/Gammy",
        cmdclass     = versioneer.get_cmdclass(),
        packages     = find_packages(),
        install_requires = [
            "attrs",
            "bayespy",
            "h5py",
            "matplotlib",
            "numpy",
            "scipy"
        ],
        extras_require = {
            "dev": [
                "versioneer",
                "pytest",
                "hypothesis",
            ],
        },
        keywords     = [
            "Statistical modeling",
            "Bayesian statistics",
            "Machine learning",
        ],
        classifiers = [
            "Programming Language :: Python :: 3 :: Only",
            "Development Status :: 1 - Planning",
            "Environment :: Console",
            "Intended Audience :: Science/Research",
            "License :: OSI Approved :: {0}".format(meta["__license__"]),
            "Operating System :: OS Independent",
            "Topic :: Scientific/Engineering",
        ],
        long_description = read('README.md'),
        long_description_content_type = "text/markdown",
    )
[((12, 31, 12, 56), 'os.path.abspath', 'os.path.abspath', ({(12, 47, 12, 55): '__file__'}, {}), '(__file__)', False, 'import os\n'), ((13, 14, 13, 57), 'os.path.join', 'os.path.join', ({(13, 27, 13, 35): 'base_dir', (13, 37, 13, 44): '"""gammy"""', (13, 46, 13, 56): '"""_meta.py"""'}, {}), "(base_dir, 'gammy', '_meta.py')", False, 'import os\n'), ((19, 23, 19, 47), 'versioneer.get_version', 'versioneer.get_version', ({}, {}), '()', False, 'import versioneer\n'), ((24, 23, 24, 48), 'versioneer.get_cmdclass', 'versioneer.get_cmdclass', ({}, {}), '()', False, 'import versioneer\n'), ((25, 23, 25, 38), 'setuptools.find_packages', 'find_packages', ({}, {}), '()', False, 'from setuptools import setup, find_packages\n'), ((9, 33, 9, 58), 'os.path.dirname', 'os.path.dirname', ({(9, 49, 9, 57): '__file__'}, {}), '(__file__)', False, 'import os\n')]