
from setuptools import setup, find_packages
import os
import sys

requires = ['setuptools']

if sys.version_info[:2] < (2, 7):
    requires.append('unittest2')

here = os.path.dirname(__file__)
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()

setup(
    name='perfmetrics',
    version='0.9.1',
    author='Shane Hathaway',
    author_email='shane@hathawaymix.org',
    description='Send performance metrics about Python code to Statsd',
    long_description=README + '\n\n' + CHANGES,
    # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "License :: Repoze Public License",
        "Topic :: System :: Monitoring",
        ],
    url="https://github.com/hathawsh/perfmetrics",
    license='BSD-derived (http://www.repoze.org/LICENSE.txt)',
    packages=find_packages('src'),
    package_dir={'': 'src'},
    include_package_data=True,
    zip_safe=False,
    tests_require=requires + ['nose'],
    test_suite="nose.collector",
    install_requires=requires,
    )
