import subprocess as sp
import platform
from setuptools import setup, find_packages

with open("README.md", "r") as f:
    long_description = f.read()

proceed = True
requires = [
    "torch~=1.11",
    "torchvision~=0.12",
    "matplotlib~=3.4",
    "nidaqmx~=0.6",
    "tqdm~=4.63",
    "PyYAML==6.0",
    "unittest2==1.1.0",
    "pytest==7.1.2",
    "pytest-cov==3.0.0",
    "coverage==6.4"
]

if platform.system() == "Windows":
    requires.append("pywin32==225")

setup(
    name="brainspy",
    version="1.0.2",
    description=
    "A python package to support research on different nano-scale materials for creating hardware accelerators in the context of deep neural networks.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    keywords=['pytorch', 'nano', 'material', 'hardware acceleration', 'deep neural networks'],	
    author="Unai Alegre-Ibarra et al.",
    author_email="u.alegre@utwente.nl",
    license="GPL-3.0",
    #python_requires='==3.9',
    install_requires=requires,
    packages=find_packages(exclude=["tests"]),
	#package_dir={"": str("src/brainspy")},
    #py_modules=["brainspy"],
    #url="https://github.com/BraiNEdarwin/brains-py",
    #download_url = "https://github.com/brainedarwin/brains-py/archive/1.0.0.tar.gz",
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
        'Intended Audience :: Science/Research',
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'
    ]
)
