"""setuptools config"""

import sys

from setuptools import setup


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

version = "1.5.0.post1"
packages = ["authorization_django", "authorization_django.extensions"]
requires = ["Django>=1.10.3", "requests>=2.20.1", "jwcrypto>=1.4.2"]
requires_test = ["pytest>=3.0.5", "pytest-cov>=2.4.0", "requests_mock"]
requires_extras = {
    "dev": [] + requires_test,
    "extended": ["djangorestframework>=3.15.2", "drf-spectacular>=0.28.0"]
    + requires_test,
}

setup(
    name="datapunt-authorization-django",
    version=version,
    description="Datapunt authorization check for Django",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/Amsterdam/authorization_django",
    author="Amsterdam Datapunt",
    author_email="datapunt@amsterdam.nl",
    license="Mozilla Public License Version 2.0",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Natural Language :: English",
        "Topic :: System :: Systems Administration :: Authentication/Directory",
        "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
    ],
    packages=packages,
    install_requires=requires,
    tests_require=requires_test,
    extras_require=requires_extras,
)
