old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  
  with open('README.rst') as readme_file:
      readme = readme_file.read()
  
  with open('HISTORY.rst') as history_file:
      history = history_file.read().replace('.. :changelog:', '')
  
  with open('requirements.txt') as requirements_file:
      requirements = requirements_file.readlines()
  
  test_requirements = [
      'coverage',
      'flake8',
      'pep8-naming',
      'mock',
  ]
  
  setup(
      name='openupgradelib',
      version='0.1.0',
      description="A library with support functions to be called from Odoo "
                  "migration scripts.",
      long_description=readme + '\n\n' + history,
      author="Odoo Community Association",
      author_email='support@odoo-community.org',
      url='https://github.com/OCA/openupgradelib',
      packages=['openupgradelib'],
      package_dir={'openupgradelib': 'openupgradelib'},
      include_package_data=True,
      install_requires=requirements,
      license="AGPL-3",
      zip_safe=False,
      keywords='openupgradelib',
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Natural Language :: English',
          "Programming Language :: Python :: 2",
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
      ],
      test_suite='tests',
      tests_require=test_requirements
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  
  with open('README.rst') as readme_file:
      readme = readme_file.read()
  
  with open('HISTORY.rst') as history_file:
      history = history_file.read().replace('.. :changelog:', '')
  
  dirname = os.path.dirname(__file__)
  
  with open(os.path.join(dirname, 'requirements.txt')) as requirements_file:
      requirements = requirements_file.readlines()
  
  test_requirements = [
      'coverage',
      'flake8',
      'pep8-naming',
      'mock',
  ]
  
  setup(
      name='openupgradelib',
      version='0.1.0',
      description="A library with support functions to be called from Odoo "
                  "migration scripts.",
      long_description=readme + '\n\n' + history,
      author="Odoo Community Association",
      author_email='support@odoo-community.org',
      url='https://github.com/OCA/openupgradelib',
      packages=['openupgradelib'],
      package_dir={'openupgradelib': 'openupgradelib'},
      include_package_data=True,
      install_requires=requirements,
      license="AGPL-3",
      zip_safe=False,
      keywords='openupgradelib',
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Natural Language :: English',
          "Programming Language :: Python :: 2",
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
      ],
      test_suite='tests',
      tests_require=test_requirements
  )
  
subject: Fix pip install issue