import os
from setuptools import setup

from codenerix_email import __version__, __authors__

with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
    README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name="django_codenerix_email",
    version=__version__,
    packages=["codenerix_email"],
    include_package_data=True,
    zip_safe=False,
    license="Apache License Version 2.0",
    description="Codenerix Email is a module that enables CODENERIX to "
    "set send emails in a general manner.",
    long_description=README,
    url="https://github.com/codenerix/django-codenerix-email",
    author=", ".join(__authors__),
    keywords=["django", "codenerix", "management", "erp", "crm", "send email"],
    platforms=["OS Independent"],
    classifiers=[
        "Environment :: Web Environment",
        "Framework :: Django",
        "Framework :: Django :: 1.8",
        "Framework :: Django :: 1.9",
        "Framework :: Django :: 1.10",
        "Intended Audience :: Developers",
        "License :: Other/Proprietary License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
    ],
    install_requires=[
        "django_codenerix>=5.0.69",
        "django_codenerix_extensions>=4.0.4",
        "IMAPClient>=3.0.1",
    ],
)
