#!/usr/bin/env python3

from distutils.core import setup
from distutils.command.install import install as _install

class PostInstallCommand(_install):
    """Post-installation for installation mode."""
    def run(self):
        _install.run(self)

        import nltk
        nltk.download('punkt')
        nltk.download('porter_test')
        nltk.download('averaged_perceptron_tagger')

setup(
    name = 'pyseoanalyzer',
    version = '3.0.1',
    description = 'An SEO tool that gives you general Search Engine Optimization directions.',
    author = 'Seth Black',
    author_email = 'sblack@sethserver.com',
    url = 'https://github.com/sethblack/python-seo-analyzer',
    packages = ['seoanalyzer'],
    keywords = ['search engine optimization', 'seo', 'website parser', 'crawler', 'scraper',],
    install_requires=[
        'BeautifulSoup4', 'nltk', 'numpy', 'requests',
    ],
    cmdclass ={ 
        'install': PostInstallCommand,
    },
    scripts = ['seoanalyzer/seoanalyze'],
    classifiers = [
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3 :: Only",
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Text Processing",
        "Topic :: Internet :: WWW/HTTP",
    ],
    long_description = """\
SEOAnalyzer
-----------

An SEO tool that analyzes the structure of a site, crawls the site, count words in the body of the site and warns of any general SEO related issues.

This version required Python 3.4 or later. C'mon everyone, get with the times, Python 3 is great!
"""
)
