from pathlib import Path

import setuptools

requires = [
    "flake8 > 3.0.0",
    "flake8-plugin-utils ~= 1.3.2",
]

flake8_entry_point = 'flake8.extension'

this_directory = Path(__file__).parent.resolve()
long_description = (this_directory / 'README.md').read_text()

setuptools.setup(
    name="flake8_local_import",
    license="MIT",
    version="1.0.6",
    description="Python 3 check local import for flake8",
    long_description=long_description,
    long_description_content_type='text/markdown',
    author="meanmail",
    author_email="meanmail@meanmail.dev",
    url="https://github.com/meanmail-dev/flake8-local-import",
    packages=[
        "flake8_local_import",
    ],
    install_requires=requires,
    entry_points={
        flake8_entry_point: [
            'LI = flake8_local_import:LocalImportPlugin',
        ],
    },
    classifiers=[
        "Framework :: Flake8",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Quality Assurance",
    ],
)
