# @Author: <NAME> <arthur>
# @Date:   11.05.2021
# @Filename: setup.py
# @Last modified by:   arthur
# @Last modified time: 29.07.2021

from setuptools import setup, find_packages
import sys
import pip
pip.main(['install'] + ['wheel'])

if sys.version_info[:2] < (3, 6):
    print(f'pyrexMD requires Python 3.6 or higher but Python {sys.version_info[0]}.{sys.version_info[1]} was detected.')
    print('Please upgrade your Python version.')
    sys.exit(-1)

if sys.version_info.minor == 8:
    setup(name='pyrexMD',
          version='1.0',
          description='workflow orientated setup and analyses of contact-guided Replica Exchange Molecular Dynamics (requires GROMACS for MD)',
          license="MIT",
          author='<NAME>',
          author_email='<EMAIL>',
          url='https://github.com/KIT-MBS/pyrexMD',
          packages=find_packages(),
          setup_requires=['wheel'],
          install_requires=[
              'autopep8>=1.5.7',
              'biopython==1.78',
              'duecredit>=0.9.1',
              'future>=0.18.2',
              'GromacsWrapper==0.8.0',
              'h5py>=3.3.0',
              'heat==1.0.0',
              'ipywidgets>=7.6.3',
              'jupyter>=1.0.0',
              'scikit-learn>=0.24.2',
              'nglview==2.0',
              'matplotlib>=3.3.4',
              'MDAnalysis>=1.1.1',
              'numpy>=1.21.0',
              'pyperclip>=1.8.2',
              'pytest>=6.2.4',
              'pytest-cov>=2.12.1',
              'seaborn>=0.11.1',
              'termcolor>=1.1.0',
              'tqdm>=4.61.2',
              'widgetsnbextension>=3.5.1'
          ]
          )

if sys.version_info.minor == 6:
    setup(name='pyrexMD',
          version='1.0',
          description='workflow orientated setup and analyses of contact-guided Replica Exchange Molecular Dynamics (requires GROMACS for MD)',
          license="MIT",
          author='<NAME>',
          author_email='<EMAIL>',
          url='https://github.com/KIT-MBS/pyrexMD',
          packages=find_packages(),
          setup_requires=['wheel'],
          install_requires=[
              'autopep8>=1.4.3',
              'biopython==1.78',
              'duecredit>=0.9.1',
              'future>=0.17.1',
              'GromacsWrapper>=0.8.0',
              'h5py>=2.10.0',
              'heat==0.5.0',
              'ipywidgets>=7.4.2',
              'jupyter>=1.0.0',
              'scikit-learn>=0.24.2',
              'matplotlib>=3.3.4',
              'MDAnalysis==1.1.1',
              'nglview==2.0',
              'numpy>=1.19.5',
              'pyperclip>=1.7.0',
              'pytest>=6.2.4',
              'pytest-cov>=2.12.1',
              'seaborn>=0.11.1',
              'termcolor>=1.1.0',
              'tqdm>=4.61.2',
              'widgetsnbextension>=3.4.2'
          ]
          )
