#!/usr/bin/env python

"""
statsdmetrics
--------------

Data metrics for Statsd.

"""
from __future__ import print_function

import os
from os.path import dirname

try:
    import setuptools
    from setuptools import setup
except ImportError:
    setuptools = None
    from distutils.core import setup

try:
    import distutilazy.test
    import distutilazy.clean
except ImportError:
    distutilazy = None

from statsdmetrics import __version__

classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 2.7",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.2",
    "Programming Language :: Python :: 3.3",
    "Programming Language :: Python :: 3.4",
    "Programming Language :: Python :: 3.5",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python :: Implementation :: PyPy",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: System :: Networking :: Monitoring",
    "Topic :: Internet :: Log Analysis"
]

long_description = __doc__
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as fh:
    long_description = fh.read()

setup_params = dict(
    name = "statsdmetrics",
    packages = ["statsdmetrics", "statsdmetrics.app"],
    version = __version__,
    description = "Metric classes for Statsd",
    long_description = long_description,
    author = "Farzad Ghanei",
    author_email = "farzad.ghanei@gmail.com",
    license = "MIT",
    classifiers = classifiers,
)

if setuptools:
    dev_dependencies_filename = os.path.join(
        dirname(__file__),
        "requirements-dev.txt"
    )
    if os.path.exists(dev_dependencies_filename):
        with open(dev_dependencies_filename) as fh:
            setup_params["extras_require"] = {
                "dev": [item.strip() for item in fh.readlines()]
            }
    setup_params["keywords"] = "statsd metrics"
    setup_params["test_suite"] = "tests"
    setup_params["zip_safe"] = True
    setup_params["entry_points"] = {
        "console_scripts": [
            "statsd-client = statsdmetrics.app.statsdclient:main",
        ]
    }

if distutilazy:
    setup_params["cmdclass"] = dict(
        test=distutilazy.test.run_tests,
        clean_pyc=distutilazy.clean.clean_pyc,
        clean=distutilazy.clean.clean_all
    )

if __name__ == "__main__":
    setup(**setup_params)

__all__ = (setup_params, classifiers, long_description)

@@ -654,32 +654,75 @@
 age :: Python%22,%0A
+    %22Programming Language :: Python :: 2%22,%0A
     %22Programming
@@ -1225,49 +1225,8 @@
 ing%22
-,%0A    %22Topic :: Internet :: Log Analysis%22
 %0A%5D%0A%0A

Remove unnecessary classifier from setup.py, add Python 2 version