"""Setup script for Loom workflow orchestration."""

from setuptools import find_packages, setup

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

setup(
    name="loom-core",
    version="0.1.0",
    author="Satadeep Dasgupta",
    author_email="satadeep.dasgupta@brainiuminfotech.com",
    description="Durable workflow orchestration engine for Python",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/satadeep3927/loom",
    packages=find_packages(exclude=["tests", "tests.*", "examples", "examples.*"]),
    package_data={
        "loom": ["migrations/up/*.sql", "migrations/down/*.sql"],
    },
    include_package_data=True,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Application Frameworks",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.12",
    ],
    python_requires=">=3.12",
    install_requires=[
        "aiosqlite>=0.19.0",
        "click>=8.0.0",
        "rich>=13.0.0",
    ],
    extras_require={
        "dev": [
            "pytest>=7.0.0",
            "pytest-asyncio>=0.21.0",
            "pytest-cov>=4.0.0",
            "mypy>=1.0.0",
            "black>=23.0.0",
            "isort>=5.12.0",
            "ruff>=0.1.0",
        ],
    },
    entry_points={
        "console_scripts": [
            "loom=loom.cli.cli:cli",
        ],
    },
)
