#!/usr/bin/env python
import pathlib
from importlib.machinery import SourceFileLoader

from setuptools import find_packages, setup

version = SourceFileLoader("version", "sqlalchemy_multiple_db/version.py").load_module()


_ROOT = pathlib.Path(__file__).parent

with open(str(_ROOT / "README.md")) as f:
    readme = f.read()

CLASSIFIERS = [
    "Development Status :: 5 - Production/Stable",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.7",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Operating System :: POSIX",
    "Topic :: Software Development",
    "Topic :: Software Development :: Libraries",
    "Environment :: Console",
    "Intended Audience :: Developers",
]


setup(
    name="sqlalchemy-multiple-db",
    version=str(version.VERSION),
    license="Apache License, Version 2.0",
    description="Helper for easily connect to multiple databases.",
    long_description=readme,
    long_description_content_type="text/markdown",
    author="<NAME>",
    author_email="<EMAIL>",
    maintainer="<NAME>",
    maintainer_email="<EMAIL>",
    download_url="https://pypi.python.org/pypi/sqlalchemy-multiple-db",
    url="https://github.com/bigbag/sqlalchemy-multiple-db",
    platforms=["POSIX"],
    classifiers=CLASSIFIERS,
    python_requires=">=3.7",
    install_requires=["SQLAlchemy>=1.4,<1.5"],
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    test_suite="",
)
