"""
pimsg Setup — Python library and HTTP server for macOS Messages via imsg
"""

from setuptools import setup, find_packages
from pathlib import Path

# Read README
readme_file = Path(__file__).parent / "README.md"
if readme_file.exists():
    long_description = readme_file.read_text(encoding='utf-8')
else:
    long_description = "Python library and HTTP server for interacting with macOS Messages via imsg"

setup(
    name="pimsg",
    version="0.1.0",
    author="dynacylabs",
    author_email="dev@dynacylabs.com",
    description="Python library and HTTP server for interacting with macOS Messages via imsg",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/dynacylabs/pimsg",
    packages=find_packages(include=["pimsg", "pimsg.*"]),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Communications :: Chat",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Operating System :: MacOS",
    ],
    python_requires=">=3.10",
    install_requires=[
        "fastapi>=0.110.0",
        "uvicorn[standard]>=0.27.0",
        "pydantic>=2.0.0",
    ],
    extras_require={
        "dev": [
            "pytest>=7.0.0",
            "pytest-cov>=4.0.0",
            "pytest-mock>=3.10.0",
            "pytest-asyncio>=0.23.0",
            "httpx>=0.27.0",
            "coverage>=7.0.0",
            "black>=22.0.0",
            "ruff>=0.1.0",
            "mypy>=1.0.0",
        ],
        "test": [
            "pytest>=7.0.0",
            "pytest-cov>=4.0.0",
            "pytest-mock>=3.10.0",
            "pytest-asyncio>=0.23.0",
            "httpx>=0.27.0",
            "coverage>=7.0.0",
        ],
    },
)
