"""
SpyMonk-DB Enterprise: Spanner-Inspired Distributed Database
"""

from setuptools import setup, find_packages

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

with open("requirements.txt", "r", encoding="utf-8") as f:
    requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")]

setup(
    name="spymonk-db",
    version="0.1.0",
    author="Shubhajeet Pradhan",
    description="Spanner-inspired distributed database with external consistency",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://gitlab.com/shubhajeet.pradhan/spymonk-db2.0",
    packages=find_packages(exclude=["tests", "tests.*", "benchmarks", "docs"]),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Database :: Database Engines/Servers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
    ],
    python_requires=">=3.11",
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest>=7.4.0",
            "pytest-asyncio>=0.21.0",
            "pytest-cov>=4.1.0",
            "black>=23.7.0",
            "flake8>=6.1.0",
            "mypy>=1.5.0",
            "isort>=5.12.0",
        ],
        "performance": [
            "locust>=2.15.1",
            "py-spy>=0.3.14",
        ],
        "monitoring": [
            "prometheus-client>=0.17.1",
            "opentelemetry-api>=1.20.0",
            "opentelemetry-sdk>=1.20.0",
        ]
    },
    entry_points={
        "console_scripts": [
            "spymonk-server=spymonk_enterprise.spanserver.server_cli:main",
            "spymonk-cli=spymonk_enterprise.client.cli:main",
            "spymonk-admin=spymonk_enterprise.admin.admin_cli:cli",
        ],
    },
)
