from setuptools import setup, find_packages
import toml

def getRequirements():
    with open('requirements.txt', 'r') as f:
        requirements = f.read().splitlines()
    return requirements

def readme():
    with open('README.md') as f:
        return f.read()
    
def version():
    with open('pyproject.toml') as f:
        return toml.load(f)['project']['version']
    
setup(
    name='neuroiatools',
    version=version(),
    packages=find_packages(),
    install_requires=getRequirements(),
    author='LUCAS BALDEZZARI',
    author_email='lmbaldezzari@gmail.com',
    description='Tools for EEG processing and analysis',
    long_description=readme(),
    url='https://github.com/lucasbaldezzari/neuroiatools',
    license='MIT',
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Operating System :: Microsoft :: Windows :: Windows 10',
        'Operating System :: Microsoft :: Windows :: Windows 11',
        'Operating System :: Unix',
    ],
)