#!/usr/bin/env python
import os
import sys
import re

from setuptools import setup, find_packages


version = re.compile(r'VERSION\s*=\s*\((.*?)\)')


def get_package_version():
    "returns package version without importing it"
    base = os.path.abspath(os.path.dirname(__file__))
    with open(os.path.join(base, "tcelery/__init__.py")) as initf:
        for line in initf:
            m = version.match(line.strip())
            if not m:
                continue
            return ".".join(m.groups()[0].split(", "))

install_requires = ['celery', 'tornado']
dependency_links = []

if sys.version_info[0] >= 3:
    dependency_links.append(
        'https://github.com/renshawbay/pika-python3/archive/python3.zip#egg=pika-python3'
    )
    install_requires.append('pika-python3')
else:
    install_requires.append('pika')

setup(
    name='tornado-celery',
    version=get_package_version(),
    description='Celery integration with Tornado',
    long_description=open('README.rst').read(),
    author='Mher Movsisyan',
    author_email='mher.movsisyan@gmail.com',
    url='https://github.com/mher/tornado-celery',
    license='BSD',
    packages=['tcelery'],
    dependency_links=dependency_links,
    entry_points={
        'console_scripts': [
            'tcelery = tcelery.__main__:main',
        ]
    },
)

@@ -822,16 +822,643 @@
 pika')%0A%0A
+%0Aclasses = %22%22%22%0A    Development Status :: 3 - Alpha%0A    Intended Audience :: Developers%0A    License :: OSI Approved :: BSD License%0A    Topic :: System :: Distributed Computing%0A    Programming Language :: Python%0A    Programming Language :: Python :: 2%0A    Programming Language :: Python :: 2.6%0A    Programming Language :: Python :: 2.7%0A    Programming Language :: Python :: 3%0A    Programming Language :: Python :: 3.2%0A    Programming Language :: Python :: 3.3%0A    Programming Language :: Python :: Implementation :: CPython%0A    Operating System :: OS Independent%0A%22%22%22%0Aclassifiers = %5Bs.strip() for s in classes.split('%5Cn') if s%5D%0A%0A%0A
 setup(%0A 
@@ -1768,28 +1768,89 @@
     
-packages=%5B'tcelery
+classifiers=classifiers,%0A    packages=find_packages(exclude=%5B'tests', 'tests.*
 '%5D
+)
 ,%0A  

Add setup classifiers