"""
setup.py
"""

import os
import sys
from setuptools import setup
from pylint_runner import __author__, __version__

MAJOR_VERSION = sys.version_info[0]
MAJOR_MINOR_VERSION = ".".join([str(x) for x in sys.version_info[0:2]])


def get_requirements():
    """Get requirements from requirements.txt file"""
    with open("requirements.txt") as requirements:
        reqs = requirements.readlines()
    return reqs


CONSOLE_SCRIPTS = [
    "pylint_runner = pylint_runner.main:main",
    "pylint_runner{0} = pylint_runner.main:main".format(MAJOR_VERSION),
    "pylint_runner{0} = pylint_runner.main:main".format(MAJOR_MINOR_VERSION),
]

setup(
    name="pylint_runner",
    version=__version__,
    packages=["pylint_runner"],
    url="http://github.com/MasterOdin/pylint_runner",
    license="MIT",
    author=__author__,
    author_email="matt.peveler@gmail.com",
    description="Run pylint recursively on all py files in current and sub directories",
    long_description=open(
        "README.rst"
    ).read(),  # + '\n\n' + open('CHANGELOG.rst').read(),
    entry_points={"console_scripts": CONSOLE_SCRIPTS},
    python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
    install_requires=get_requirements(),
    tests_require=["nose"],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Topic :: Software Development :: Debuggers",
        "Topic :: Software Development :: Quality Assurance",
        "Topic :: Software Development :: Testing",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
    ],
)

"""
setup.py
"""

import sys
from setuptools import setup
from pylint_runner import __author__, __version__

MAJOR_VERSION = sys.version_info[0]
MAJOR_MINOR_VERSION = ".".join([str(x) for x in sys.version_info[0:2]])


def get_requirements():
    """Get requirements from requirements.txt file"""
    with open("requirements.txt") as requirements:
        reqs = requirements.readlines()
    return reqs


CONSOLE_SCRIPTS = [
    "pylint_runner = pylint_runner.main:main",
    "pylint_runner{0} = pylint_runner.main:main".format(MAJOR_VERSION),
    "pylint_runner{0} = pylint_runner.main:main".format(MAJOR_MINOR_VERSION),
]

setup(
    name="pylint_runner",
    version=__version__,
    packages=["pylint_runner"],
    url="http://github.com/MasterOdin/pylint_runner",
    license="MIT",
    author=__author__,
    author_email="matt.peveler@gmail.com",
    description="Run pylint recursively on all py files in current and sub directories",
    long_description=open(
        "README.rst"
    ).read(),  # + '\n\n' + open('CHANGELOG.rst').read(),
    entry_points={"console_scripts": CONSOLE_SCRIPTS},
    python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
    install_requires=get_requirements(),
    tests_require=["nose"],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Topic :: Software Development :: Debuggers",
        "Topic :: Software Development :: Quality Assurance",
        "Topic :: Software Development :: Testing",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
    ],
)

Remove unused import