import io
import unittest
from setuptools import find_packages, setup

# Package meta-data.
NAME = "smtm"
DESCRIPTION = "A algorithm crypto trading system."
URL = "https://github.com/msaltnet/smtm"
EMAIL = "salt.jeong@gmail.com"
AUTHOR = "msalt"
VERSION = "1.1.1"

# What packages are required for this module to be executed?
REQUIRED = [
    "requests",
    "pandas",
    "numpy",
    "matplotlib",
    "mplfinance",
    "pyjwt",
    "python-dotenv",
    "jupyter",
    "psutil",
]


def long_description():
    with io.open("README-en_us.md", "r", encoding="utf-8") as f:
        readme = f.read()
    return readme


def smtm_test_suite():
    test_loader = unittest.TestLoader()
    test_suite = test_loader.discover("tests", pattern="*test.py")
    return test_suite


setup(
    name=NAME,
    version=VERSION,
    description=DESCRIPTION,
    long_description=long_description(),
    long_description_content_type="text/markdown",
    url=URL,
    author=AUTHOR,
    author_email=EMAIL,
    license="MIT",
    packages=["smtm"],
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3.6",
    ],
    install_requires=REQUIRED,
    extras_require={"dev": ["coverage"]},
    test_suite="setup.smtm_test_suite",
    zip_safe=False,
)
