from setuptools import setup
import os

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

setup(
    name='espei',
    author='Brandon Bocklund',
    author_email='brandonbocklund@gmail.com',
    description='Fitting thermodynamic models with pycalphad.',
    packages=['espei', 'espei.error_functions', 'espei.parameter_selection', 'espei.optimizers'],
    package_data={
        'espei': ['input-schema.yaml']
    },
    license='MIT',
    long_description=readme('README.rst'),
    long_description_content_type='text/x-rst',
    url='https://espei.org/',
    install_requires=[
        'cerberus',
        'corner',
        'dask[complete]>=2',
        'distributed>=2',
        'emcee<3',
        'importlib_metadata',  # drop for Python>=3.8
        'matplotlib',
        'numpy>=1.20',
        'pycalphad>=0.10.0',
        'pyyaml',
        'setuptools_scm[toml]>=6.0',
        'scikit-learn>=1.0',
        'scipy',
        'symengine>=0.9',
        'tinydb>=4',
    ],
    extras_require={
        'dev': [
            'furo',
            'ipython',  # for pygments syntax highlighting
            'pytest',
            'sphinx',
            'twine',
        ],
        'mpi': [
            'mpi4py',
            'dask-mpi>=2',
        ]
    },
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Physics',
        'Topic :: Scientific/Engineering :: Chemistry',

        'License :: OSI Approved :: MIT License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
    ],
    entry_points={'console_scripts': [
                  'espei = espei.espei_script:main']}

)

from setuptools import setup
import os

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

setup(
    name='espei',
    author='Brandon Bocklund',
    author_email='brandonbocklund@gmail.com',
    description='Fitting thermodynamic models with pycalphad.',
    packages=['espei', 'espei.error_functions', 'espei.parameter_selection', 'espei.optimizers'],
    package_data={
        'espei': ['input-schema.yaml']
    },
    license='MIT',
    long_description=readme('README.rst'),
    long_description_content_type='text/x-rst',
    url='https://espei.org/',
    install_requires=[
        'cerberus',
        'corner',
        'dask[complete]>=2',
        'distributed>=2',
        'emcee<3',
        'importlib_metadata',  # drop for Python>=3.8
        'matplotlib',
        'numpy>=1.20',
        'pycalphad>=0.10.1',
        'pyyaml',
        'setuptools_scm[toml]>=6.0',
        'scikit-learn>=1.0',
        'scipy',
        'symengine>=0.9',
        'tinydb>=4',
    ],
    extras_require={
        'dev': [
            'furo',
            'ipython',  # for pygments syntax highlighting
            'pytest',
            'sphinx',
            'twine',
        ],
        'mpi': [
            'mpi4py',
            'dask-mpi>=2',
        ]
    },
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Physics',
        'Topic :: Scientific/Engineering :: Chemistry',

        'License :: OSI Approved :: MIT License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
    ],
    entry_points={'console_scripts': [
                  'espei = espei.espei_script:main']}

)

Update minimium pycalphad version to 0.10.1