old_contents: #!/usr/bin/env python
  
  import os, sys, glob, subprocess, textwrap
  
  try:
      import setuptools
      assert int(setuptools.__version__.split(".", 1)[0]) >= 19
  except (ImportError, AssertionError):
      msg = 'Error: Aegea failed to install because your version of setuptools is too old ({}; 19 is required). Run "make install_venv" to install aegea in its own virtualenv, or upgrade your pip and setuptools to their latest versions.' # noqa
      exit(textwrap.fill(msg.format(setuptools.__version__)))
  
  try:
      # Git version extraction logic designed to be compatible with both semver and PEP 440
      version = subprocess.check_output(["git", "describe", "--tags", "--match", "v*.*.*"]).decode()
      version = version.strip("v\n").replace("-", "+", 1).replace("-", ".")
  except:
      version = "0.0.0"
  
  setuptools.setup(
      name="aegea",
      version=version,
      url="https://github.com/kislyuk/aegea",
      license=open("LICENSE.md").readline().strip(),
      author="Andrey Kislyuk",
      author_email="kislyuk@gmail.com",
      description="Amazon Web Services Operator Interface",
      long_description=open("README.rst").read(),
      install_requires=[
          "boto3 >= 1.4.2, < 2",
          "argcomplete >= 1.8.2, < 2",
          "paramiko >= 2.1.1, < 3",
          "requests >= 2.12.4, < 3",
          "tweak >= 0.5.1, < 0.6",
          "keymaker >= 0.3.3, < 1",
          "pyyaml >= 3.11, < 4",
          "python-dateutil >= 2.5.3, < 3",
          "babel >= 2.3.4, < 3",
          "ipwhois >= 0.13.0, < 1",
          "uritemplate >= 3.0.0, < 4",
          "awscli >= 1.2.9",
          "chalice >= 1.0.2"
      ],
      extras_require={
          ':python_version == "2.7"': [
              "enum34 >= 1.1.6, < 2",
              "ipaddress >= 1.0.17, < 2",
              "subprocess32 >= 3.2.7, < 4"
          ]
      },
      tests_require=[
          "coverage",
          "flake8"
      ],
      packages=setuptools.find_packages(exclude=["test"]),
      scripts=glob.glob("scripts/*"),
      platforms=["MacOS X", "Posix"],
      test_suite="test",
      include_package_data=True
  )
  
new_contents: #!/usr/bin/env python
  
  import os, sys, glob, subprocess, textwrap
  
  try:
      import setuptools
      assert int(setuptools.__version__.split(".", 1)[0]) >= 19
  except (ImportError, AssertionError):
      msg = 'Error: Aegea failed to install because your version of setuptools is too old ({}; 19 is required). Run "make install_venv" to install aegea in its own virtualenv, or upgrade your pip and setuptools to their latest versions.' # noqa
      exit(textwrap.fill(msg.format(setuptools.__version__)))
  
  try:
      # Git version extraction logic designed to be compatible with both semver and PEP 440
      version = subprocess.check_output(["git", "describe", "--tags", "--match", "v*.*.*"]).decode()
      version = version.strip("v\n").replace("-", "+", 1).replace("-", ".")
  except:
      version = "0.0.0"
  
  setuptools.setup(
      name="aegea",
      version=version,
      url="https://github.com/kislyuk/aegea",
      license=open("LICENSE.md").readline().strip(),
      author="Andrey Kislyuk",
      author_email="kislyuk@gmail.com",
      description="Amazon Web Services Operator Interface",
      long_description=open("README.rst").read(),
      install_requires=[
          "boto3 >= 1.4.2, < 2",
          "argcomplete >= 1.8.2, < 2",
          "paramiko >= 2.1.1, < 3",
          "requests >= 2.12.4, < 3",
          "tweak >= 0.6.4, < 1",
          "keymaker >= 0.3.3, < 1",
          "pyyaml >= 3.11, < 4",
          "python-dateutil >= 2.5.3, < 3",
          "babel >= 2.3.4, < 3",
          "ipwhois >= 0.13.0, < 1",
          "uritemplate >= 3.0.0, < 4",
          "awscli >= 1.2.9",
          "chalice >= 1.0.2"
      ],
      extras_require={
          ':python_version == "2.7"': [
              "enum34 >= 1.1.6, < 2",
              "ipaddress >= 1.0.17, < 2",
              "subprocess32 >= 3.2.7, < 4"
          ]
      },
      tests_require=[
          "coverage",
          "flake8"
      ],
      packages=setuptools.find_packages(exclude=["test"]),
      scripts=glob.glob("scripts/*"),
      platforms=["MacOS X", "Posix"],
      test_suite="test",
      include_package_data=True
  )
  
subject: Bump tweak dependency with upstream fix