# -*- coding: utf-8 -*-
from pathlib import Path

from setuptools import setup, find_packages

install_requires: list = [
    "Django>=5,<6",
    "ocyan.core>=1.2.7",
    "sentry-sdk>=2,<3",
]

extras_require: dict = {
    "test": [
        "ocyan.plugin.testing",
        "pylint-django",
        "ruff",
        "coverage",
    ]
}

PACKAGE_CLASSIFIERS = [
    "Framework :: Ocyan",
    "Environment :: Plugins",
]

setup(
    name="ocyan.plugin.sentry_logging",
    version="0.1.1",
    url="https://git.mandelblog.com/mandel-plugins/ocyan.plugin.sentry_logging",
    author="Motolani Olaiya",
    author_email="motolaniolaiya@gmail.com",
    description="Logs errors to Sentry.",
    long_description=Path("README.rst").read_text(encoding="utf-8"),
    long_description_content_type="text/x-rst",
    packages=find_packages(),
    include_package_data=True,
    python_requires=">=3.12,<3.13",
    install_requires=install_requires,
    classifiers=PACKAGE_CLASSIFIERS,
    extras_require=extras_require,
)
