#
# Copyright (c) 2011 Daniel Truemper truemped@googlemail.com
#
# setup.py 06-Jul-2011
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# under the License.
#
import os
from setuptools import setup, find_packages

tests_require = ['coverage>=3.4', 'tornado_pyvows']

setup(
    name = "tornadotools",
    version = '0.2.1',
    description = "A set of tools for working with tornado",
    author = "Daniel Truemper",
    author_email = "truemped@googlemail.com",
    url = "https://github.com/truemped/tornadotools",
    license = "Apache 2.0",
    long_description = file(
        os.path.join(
            os.path.dirname(__file__),
            'README.rst'
        )
    ).read(),

    packages = find_packages(),
    include_package_data = True,
    test_suite = 'nose.collector',
    install_requires = [
        'tornado>=2.0',
        'pycurl>=7.19.0',
    ],
    tests_require = tests_require,
    extras_require = {
        'test': tests_require,
        'mongrel2': ['pyzmq>=2.1.7','tnetstring>=0.2.0'],
        'forms': ['wtforms>=0.6.3'],
    },
    entry_points = {
        'console_scripts' : [
        ]
    },
    classifiers = [
        'Intended Audience :: Developers',
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.6',
        'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)

@@ -754,16 +754,133 @@
 vows'%5D%0A%0A
+with open(os.path.join(os.path.dirname(__file__), 'README.rst'),%0A          'r') as f:%0A    readme_content = f.read()%0A%0A
 setup(%0A 
@@ -1176,124 +1176,23 @@
 n = 
-file(%0A        os.path.join(%0A            os.path.dirname(__file__),%0A            'README.rst'%0A        )%0A    ).read(),%0A
+readme_content,
 %0A   

fix setup.py for python3