#!/bin/env python

import os
from distutils.core import setup

name = 'django-transfer'
version = '0.2'
release = '2'
versrel = version + '-' + release
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
long_description = file(readme).read()

setup(
    name = name,
    version = versrel,
    description = 'A django application that offloads file transfers to a downstream proxy.',
    long_description = long_description,
    author = 'Ben Timby',
    author_email = 'btimby@gmail.com',
    maintainer = 'Ben Timby',
    maintainer_email = 'btimby@gmail.com',
    url = 'http://github.com/smartfile/' + name + '/',
    license = 'MIT',
    requires = [],
    packages = [
        "django_transfer",
    ],
    classifiers = (
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Software Development :: Libraries :: Python Modules',
    ),
)

@@ -208,16 +208,54 @@
 E.rst')%0A
+with open(readme) as readme_file:%0A    
 long_des
@@ -269,20 +269,19 @@
 n = 
-file(
 readme
-)
+_file
 .rea

Fix setup.py exception under Python 3