from setuptools import setup
import io
import os

here = os.path.abspath(os.path.dirname(__file__))

def read(*filenames, **kwargs):
    encoding = kwargs.get('encoding', 'utf-8')
    sep = kwargs.get('sep', '\n')
    buf = []
    for filename in filenames:
        with io.open(filename, encoding=encoding) as f:
            buf.append(f.read())
    return sep.join(buf)

long_description = read('README.md')

setup(
    name='mongopool',
    version='0.1',
    url='http://github.com/ubervu/mongopool/',
    description='Tool that manages your mongo clients to different clusters and maps databases to clients',
    long_description=long_description,
    license='Apache Software License',
    author='UberVU',
    install_requires=['pymongo>=2.4'],
    # author_email='jeff@jeffknupp.com',
    packages=['mongopool'],
    include_package_data=True,
    platforms='any',
    test_suite='nose.collector',
    tests_require=['nose', 'mock'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Database',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    extras_require={
        'testing': ['nose'],
    }
)

Add setup.py #1