old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from setuptools import setup
  import os
  import sys
  import kafka_connector
  
  __author__ = u'Stephan Müller'
  __copyright__ = u'2017, Stephan Müller'
  __license__ = u'MIT'
  
  
  if sys.version_info[0] < 3:
      avro = 'avro'
  else:
      avro = 'avro-python3'
  
  install_requires = [avro]
  
  if os.environ.get('READTHEDOCS') == 'True':
      install_requires.append('confluent_kafka')
  
  
  setup(
      name='kafka_connector',
      packages=['kafka_connector'],
      version=kafka_connector.__version__,
      license='MIT',
      description='A python module for communication with Kafka.',
      author='Stephan Müller',
      author_email='mail@stephanmueller.eu',
      url='https://github.com/smueller18/kafka-connector',
      download_url='https://github.com/smueller18/kafka-connector',
      classifiers=[
          "Development Status :: 3 - Alpha",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3.5",
          "License :: OSI Approved :: MIT License"
      ],
      install_requires=install_requires,
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from setuptools import setup
  import os
  import sys
  import kafka_connector
  
  __author__ = u'Stephan Müller'
  __copyright__ = u'2017, Stephan Müller'
  __license__ = u'MIT'
  
  
  if sys.version_info[0] < 3:
      avro = 'avro'
  else:
      avro = 'avro-python3'
  
  install_requires = [avro]
  
  if not os.environ.get('READTHEDOCS', 'False') == 'True':
      install_requires.append('confluent_kafka')
  
  
  setup(
      name='kafka_connector',
      packages=['kafka_connector'],
      version=kafka_connector.__version__,
      license='MIT',
      description='A python module for communication with Kafka.',
      author='Stephan Müller',
      author_email='mail@stephanmueller.eu',
      url='https://github.com/smueller18/kafka-connector',
      download_url='https://github.com/smueller18/kafka-connector',
      classifiers=[
          "Development Status :: 3 - Alpha",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3.5",
          "License :: OSI Approved :: MIT License"
      ],
      install_requires=install_requires,
  )
  
subject: fix read the docs detection