# -*- coding: utf-8 -*-

from __future__ import unicode_literals, absolute_import

import os
import sys
from setuptools import setup

PKG_NAME = 'dbrouter'
CWD = os.path.dirname(__file__)


sys.path.insert(0, os.path.join(CWD, PKG_NAME))
from version import __version__


def long_description():
    kwargs = ({"encoding": "utf-8"} if sys.version_info[0] > 2 else {})
    return open(os.path.join(CWD, 'README.md'), 'r', **kwargs).read()


setup(
    name='django-dbrouter',
    version=__version__,
    author='mavriq',
    author_email='admin@mavriq.net',
    url='https://github.com/mavriq/django-dbrouter',
    description='Simple and usable database router for django',
    long_description=long_description(),
    long_description_content_type='text/markdown; charset=UTF-8; variant=GFM',
    license='LGPG',
    packages=[PKG_NAME],
    install_requires=['Django'],
    keywords=['django-dbrouter',
              'DATABASE_ROUTERS',
              'database router',
              'Django'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
        'Natural Language :: English',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Framework :: Django',
        'Framework :: Django :: 1.5',
        'Framework :: Django :: 1.6',
        'Framework :: Django :: 1.7',
        'Framework :: Django :: 1.8',
        'Framework :: Django :: 1.9',
        'Framework :: Django :: 1.10',
        'Framework :: Django :: 1.11',
        'Framework :: Django :: 2.0',
        'Framework :: Django :: 2.1',
        'Framework :: Django :: 2.2',
        'Framework :: Django :: 3.0',
        'Framework :: Django :: 3.1',
        'Framework :: Django :: 3.2',
        'Framework :: Django :: 4.0',
    ]
)
