old_contents: #!/usr/bin/env python
  
  from __future__ import with_statement
  
  try:
      from setuptools import setup
      extra = dict(test_suite="tests.test.suite", include_package_data=True)
  except ImportError:
      from distutils.core import setup
      extra = {}
  
  long_description = '''
  rgwadmin is a Python interface to the Rados Gateway Admin API.
  
  It allows for the creation, modification, and deletion of users and their
  access keys.  Usage information can also be retrieved.  This library is going
  to save you from interacting directly with a REST interface, constructing query
  strings, parsing error codes, and all that fun stuff!  It's awesome!  Enjoy!
  '''
  
  install_requires = [
      "requests",
      "requests-aws",
  ]
  
  from rgwadmin import __version__
  from rgwadmin import __license__
  
  setup(
      name="rgwadmin",
      packages=["rgwadmin"],
      version=__version__,
      install_requires=install_requires,
      setup_requires=install_requires,  # need the requests module in __init__.py
      author="Derek Yarnell",
      author_email="derek@umiacs.umd.edu",
      maintainer="UMIACS Staff",
      maintainer_email="github@umiacs.umd.edu",
      url="https://github.com/UMIACS/rgwadmin",
      license=__license__,
      description="Python Rados Gateway Admin API",
      long_description=long_description,
      keywords=["ceph", "radosgw", "admin api"],
      **extra
  )
  
new_contents: #!/usr/bin/env python
  
  from __future__ import with_statement
  import ast
  import re
  try:
      from setuptools import setup
      extra = dict(test_suite="tests.test.suite", include_package_data=True)
  except ImportError:
      from distutils.core import setup
      extra = {}
  
  long_description = '''
  rgwadmin is a Python interface to the Rados Gateway Admin API.
  
  It allows for the creation, modification, and deletion of users and their
  access keys.  Usage information can also be retrieved.  This library is going
  to save you from interacting directly with a REST interface, constructing query
  strings, parsing error codes, and all that fun stuff!  It's awesome!  Enjoy!
  '''
  
  install_requires = [
      "requests",
      "requests-aws",
  ]
  
  _version_re = re.compile(r'__version__\s+=\s+(.*)')
  with open('rgwadmin/__init__.py', 'rb') as f:
      version = str(ast.literal_eval(_version_re.search(
          f.read().decode('utf-8')).group(1)))
  
  
  setup(
      name="rgwadmin",
      packages=["rgwadmin"],
      version=version,
      install_requires=install_requires,
      author="Derek Yarnell",
      author_email="derek@umiacs.umd.edu",
      maintainer="UMIACS Staff",
      maintainer_email="github@umiacs.umd.edu",
      url="https://github.com/UMIACS/rgwadmin",
      license="LGPL v2.1",
      description="Python Rados Gateway Admin API",
      long_description=long_description,
      keywords=["ceph", "radosgw", "admin api"],
      **extra
  )
  
subject: Read the __version__ from __init__.py without importing it since we need info in the file even before running setup(). This means that setup_requires is essentially useless to us here.