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

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


__version__ = '0.6.1'

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
    README = readme.read()

os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

requires = [
    'requests>=2.7.0',
    'requests-oauthlib>=0.5.0',
    'six>=1.9.0'
]

extras_require = {
    'docs': [
        'Sphinx>=1.3.1,<1.4',
        'sphinx-rtd-theme>=0.1.8,<0.2'
    ],
    'test': []
}

if sys.version_info < (3, 3):
    extras_require['test'].append('mock>=1.2.0')

classifiers = [
    'Development Status :: 3 - Alpha',
    'Environment :: Web Environment',
    'Framework :: Django',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.5',
    'Programming Language :: Python :: Implementation :: PyPy',
    'Topic :: Internet :: WWW/HTTP',
]

setup(
    name='django-channels',
    version=__version__,
    packages=['channels', 'channels.backends'],
    include_package_data=True,
    license='MIT',
    description='A Django library for sending notifications',
    long_description=README,
    url='https://github.com/ymyzk/django-channels',
    author='Yusuke Miyazaki',
    author_email='miyazaki.dev@gmail.com',
    install_requires=requires,
    extras_require=extras_require,
    classifiers=classifiers
)

@@ -19,331 +19,235 @@
 hon%0A
-import os%0Aimport sys%0A%0Atry:%0A    from setuptools import setup%0Aexcept ImportError:%0A    from distutils.core import setup%0A%0A%0A__version__ = '0.6.1'%0A%0Awith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:%0A    README = readme.read()%0A%0Aos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))
+from codecs import open%0Afrom os import path%0Aimport sys%0A%0Afrom setuptools import setup%0A%0A%0Ahere = path.abspath(path.dirname(__file__))%0A%0Awith open(path.join(here, 'README.rst'), encoding='utf-8') as f:%0A    long_description = f.read(
 )%0A%0Ar
@@ -460,16 +460,71 @@
 : %5B%5D%0A%7D%0A%0A
+# TODO: Replace with environment markers in the future%0A
 if sys.v
@@ -1301,19 +1301,15 @@
 ion=
-__version__
+'0.6.1'
 ,%0A  
@@ -1487,22 +1487,32 @@
 ription=
-README
+long_description
 ,%0A    ur

Clean up setup.py