from io import open
from os import path

from setuptools import find_packages, setup

import versioneer

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
    long_description = f.read()

# Arguments marked as "Required" below must be included for upload to PyPI.
# Fields marked as "Optional" may be commented out.

setup(
    name="m2p",
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    description="Library for creating polymer structures from monomers using SMILES strings",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/NREL/m2p",  # Optional
    author="Nolan Wilson",
    author_email="nolan.wilson@nrel.gov",  # Optional
    classifiers=[
        "Development Status :: 3 - Alpha",
        # Indicate who your project is intended for
        "Intended Audience :: Developers",
        # Pick your license as you wish
        "License :: OSI Approved :: BSD License",
        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ],
    packages=find_packages(),  # Required
    install_requires=["pandas", "tqdm", "numpy", "casadi"],
    project_urls={"Source": "https://github.com/NREL/m2p",},
)

# https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56
