from setuptools import setup, find_packages

MAJOR = 0
MINOR = 1
MICRO = 0
VERSION = '{}.{}.{}'.format(MAJOR, MINOR, MICRO)

def get_requirements():
    with open('./requirements.txt', 'r') as f:
        reqs = f.readlines()
    return reqs


def setup_package():
    excluded = []
    package_data = {}

    desc = """Just a package for test."""

    metadata = dict(
        name='mymod',
        version=VERSION,
        description=desc,
        author='Nale Raphael',
        author_email='gmccntwxy@gmail.com',
        url='https://github.com/naleraphael/mymod',
        packages=find_packages(exclude=excluded),
        install_requires=get_requirements(),
        python_requires='>=3.4',
        license='MIT',
        extras_require={
            "tests": ["pytest", "pytest-cov"],
            "dev": [
                "pytest",
                "pytest-cov",
            ],
        },
    )

    setup(**metadata)


if __name__ == '__main__':
    setup_package()
