from setuptools import find_packages, setup
'''
Run the following code in your conda environment to make the package available
in development mode
$ python setup.py develop
'''
# Get version file
vfile = {}
exec(open('xmca/version.py').read(), vfile)

with open('README.md', 'r') as fh:
    long_description = fh.read()

with open('requirements.txt', 'r') as fh:
    install_requires = fh.read()

setup(
    name='xmca',
    include_package_data=True,
    keywords='eof, analysis, mca, pca',
    author='Niclas Rieger',
    author_email='niclasrieger@gmail.com',
    description='Maximum Covariance Analysis in Python',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/nicrie/xmca',
    packages=find_packages(),
    license='MIT',
    classifiers=[
        'Programming Language :: Python :: 3',
        'Operating System :: OS Independent',
    ],
    python_requires='>=3.6',
    version_config={
        'version_callback' : vfile['__version__'],
        'dev_template': '{tag}.post{ccount}',
        'dirty_template': '{tag}.post{ccount}'
    },
    setup_requires=['setuptools-git-versioning', 'numpy'],
    install_requires=install_requires,
)
