"""A setuptools based setup module.

See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
import sys

from setuptools import setup, find_packages

# pylint: disable=redefined-builtin

here = os.path.abspath(os.path.dirname(__file__))  # pylint: disable=invalid-name

with open(os.path.join(here, "README.rst"), encoding="utf-8") as fid:
    long_description = fid.read()  # pylint: disable=invalid-name

with open(os.path.join(here, "requirements.txt"), encoding="utf-8") as fid:
    install_requires = [line for line in fid.read().splitlines() if line.strip()]

setup(
    name="fastapi-icontract",
    version="0.0.4",
    description="Specify contracts for FastAPI endpoints.",
    long_description=long_description,
    url="https://github.com/mristin/fastapi-icontract",
    author="Marko Ristin",
    author_email="marko@ristin.ch",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Framework :: FastAPI",
    ],
    license="License :: OSI Approved :: MIT License",
    keywords="design-by-contract contracts automatic testing property-based",
    packages=find_packages(exclude=["tests"]),
    install_requires=install_requires,
    # fmt: off
    extras_require={
        "dev": [
            "black==21.12b0",
            "mypy==0.931",
            "pylint==2.12.2",
            "pydocstyle>=6.1.1,<7",
            "coverage>=4.5.1,<5",
            "docutils>=0.14,<1",
            "httpx>=0.16.1,<1",
            "requests>=2.25.1,<3",
            "uvicorn",
            "asyncstdlib>=3.9.0,<4"
        ],
    },
    # fmt: on
    py_modules=["fastapi_icontract"],
    package_data={"fastapi_icontract": ["py.typed"]},
    data_files=[(".", ["LICENSE", "README.rst", "requirements.txt"])],
)
