"""Django Swifty — A powerful Django toolkit for rapid development."""

from setuptools import setup, find_packages

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.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("#")
    ]

with open("VERSION", encoding="utf-8") as f:
    version = f.read().strip()


setup(
    name="django-swifty",
    version=version,
    author="Fudu",
    author_email="hphuc3005@gmail.com",
    description="A powerful Django toolkit for rapid development — auth, caching, logging, serializers, and more.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/hphuc3005/django-swifty",
    packages=find_packages(exclude=["tests*", "venv*", "dist*"]),
    install_requires=requirements,
    extras_require={
        "redis": ["redis>=4.0"],
        "all": ["redis>=4.0"],
    },
    classifiers=[
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Framework :: Django",
        "Framework :: Django :: 3.2",
        "Framework :: Django :: 4.0",
        "Framework :: Django :: 4.2",
        "Framework :: Django :: 5.0",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    python_requires=">=3.10",
    keywords="django toolkit utilities caching authentication logging serializers",
)
