import sys
import os
import platform

from setuptools import setup

## Get version information from _version.py
import re
VERSIONFILE="dreimac/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
    verstr = mo.group(1)
else:
    raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))

# Use README.md as the package long description  
with open('README.md') as f:
    long_description = f.read()


setup(
    name="dreimac",
    version=verstr,
    description="Dimension reduction with Eilenberg-MacClane coordinates",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Chris Tralie",
    author_email="ctralie@alumni.princeton.edu",
    license='Apache2',
    packages=['dreimac'],
    setup_requires=[
        'cython', 'numpy'
    ],
    install_requires=[
        'cython', 'numpy', 'scipy', 'matplotlib', 'numba', 'persim', 'ripser', 'jupyter', 'screeninfo'
    ],
    extras_require={
        'testing': [ # `pip install -e ".[testing]"``
            'pytest'  
        ],
        'docs': [ # `pip install -e ".[docs]"`
            'sktda_docs_config'
        ],
        'examples': []
    },
    python_requires='>=3.6',
    classifiers=[
        'Intended Audience :: Science/Research',
        'Intended Audience :: Education',
        'Intended Audience :: Financial and Insurance Industry',
        'Intended Audience :: Healthcare Industry',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Mathematics',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8'
    ],
    keywords='topological data analysis, dimension reduction'
)
