import os
import sys
try:
    import ez_setup
    ez_setup.use_setuptools()
except ImportError:
    pass
from setuptools import setup

# Use a cute trick to include the rest-style docs as the long_description
# therefore having it self-doc'ed and hosted on pypi
f = open(os.path.join(os.path.dirname(__file__), 'docs', 'index.txt'))
long_description = f.read().strip()
f.close()

setup(
    name='nose-testconfig',
    version='0.9.1',
    author='Jesse Noller',
    author_email = 'jnoller@gmail.com',
    description = 'Test Configuration plugin for nosetests.',
    long_description = long_description,
    license = 'Apache License, Version 2.0',
    classifiers=[
      'Programming Language :: Python :: 2',
      'Programming Language :: Python :: 2.6',
      'Programming Language :: Python :: 2.7',
      'Programming Language :: Python :: 3',
      'Programming Language :: Python :: 3.2',
      'Programming Language :: Python :: 3.3',
      'Programming Language :: Python :: 3.4',
      'Development Status :: 3 - Alpha',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: Apache Software License',
      'Topic :: Software Development :: Testing',
    ],
    py_modules=['testconfig'],
    packages=[''],
    package_dir={'': '.'},
    entry_points = {
        'nose.plugins.0.10': [
            'config = testconfig:TestConfig',
            ]
        }
    )
