from setuptools import find_packages, setup


setup(
    name='tchannel',
    version='0.20.2.dev0',
    author=', '.join([
        'Abhinav Gupta',
        'Aiden Scandella',
        'Bryce Lampe',
        'Grayson Koonce',
        'Junchao Wu',
    ]),
    author_email='abg@uber.com',
    description='Network multiplexing and framing protocol for RPC',
    license='MIT',
    url='https://github.com/uber/tchannel-python',
    packages=find_packages(exclude=['tests', 'tests.*']),
    package_data={
        '': ['*.thrift'],
    },
    install_requires=[
        # stdlib backports, no constraints needed
        'contextlib2',

        # external deps
        'crcmod>=1,<2',
        'tornado>=4.2,<5',

        # tchannel deps
        'thriftrw>=0.4,<2',
        'threadloop>=1,<2',
    ],
    extras_require={
        'vcr': ['PyYAML', 'mock', 'wrapt'],
    },
    entry_points={
        'console_scripts': [
            'tcurl.py = tchannel.tcurl:start_ioloop'
        ]
    },
)

@@ -38,16 +38,356 @@
  setup%0A%0A
+import re%0A%0Aversion = None%0Awith open('tchannel/__init__.py', 'r') as f:%0A    for line in f:%0A        m = re.match(r'%5E__version__%5Cs*=%5Cs*(%5B%22%5C'%5D)(%5B%5E%22%5C'%5D+)%5C1', line)%0A        if m:%0A            version = m.group(2)%0A            break%0A%0Aif not version:%0A    raise Exception(%0A        'Could not determine version number from tchannel/__init__.py'%0A    )%0A%0A
 %0Asetup(%0A
@@ -423,21 +423,15 @@
 ion=
-'0.20.2.dev0'
+version
 ,%0A  

Remove requirement to have version number in two places