old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from __future__ import (
      absolute_import, division, print_function, with_statement,
      unicode_literals)
  
  import sys
  
  from io import open
  
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  
  def parse_requirements(filename):
      with open(filename, encoding='utf-8') as f:
          for line in f:
              yield line.strip()
  
  
  def read(filename):
      with open(filename, encoding='utf-8') as f:
          return f.read()
  
  
  def parse_module(filename):
      with open(filename, encoding='utf-8') as f:
          for line in f:
              if line.startswith('__'):
                  splits = line.split('=')
                  yield tuple(s.strip().strip("'").strip('"') for s in splits)
  
  sys.dont_write_bytecode = True
  requirements = set(parse_requirements('requirements.txt'))
  dev_requirements = set(parse_requirements('dev-requirements.txt'))
  readme = read('README.rst')
  changes = read('CHANGES.rst').replace('.. :changelog:', '')
  module = dict(parse_module('pkutils.py'))
  license = module['__license__']
  version = module['__version__']
  project = module['__title__']
  description = module['__description__']
  user = 'reubano'
  github_url = 'https://github.com/%s/%s' % (user, project)
  
  setup(
      name=project,
      version=version,
      description=description,
      long_description=readme,
      author=module['__author__'],
      author_email=module['__email__'],
      url=github_url,
      download_url='%s/archive/v%s.tar.gz' % (github_url, version),
      py_modules=['pkutils'],
      include_package_data=True,
      package_data={},
      install_requires=requirements,
      test_suite='nose.collector',
      tests_require=dev_requirements,
      license=license,
      zip_safe=False,
      keywords=description.split(' '),
      classifiers=[
          'License :: OSI Approved :: MIT License',
          'Development Status :: 4 - Beta',
          'Natural Language :: English',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Intended Audience :: Developers',
          'Operating System :: POSIX :: Linux',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
      ],
      platforms=['MacOS X', 'Windows', 'Linux'],
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from __future__ import (
      absolute_import, division, print_function, with_statement,
      unicode_literals)
  
  import sys
  
  from io import open
  
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  
  def parse_requirements(filename):
      with open(filename, encoding='utf-8') as f:
          for line in f:
              yield line.strip()
  
  
  def read(filename):
      with open(filename, encoding='utf-8') as f:
          return f.read()
  
  
  def parse_module(filename):
      with open(filename, encoding='utf-8') as f:
          for line in f:
              if line.startswith('__'):
                  splits = line.split('=')
                  yield tuple(s.strip().strip("'").strip('"') for s in splits)
  
  sys.dont_write_bytecode = True
  requirements = list(parse_requirements('requirements.txt'))
  dev_requirements = list(parse_requirements('dev-requirements.txt'))
  readme = read('README.rst')
  changes = read('CHANGES.rst').replace('.. :changelog:', '')
  module = dict(parse_module('pkutils.py'))
  license = module['__license__']
  version = module['__version__']
  project = module['__title__']
  description = module['__description__']
  user = 'reubano'
  github_url = 'https://github.com/%s/%s' % (user, project)
  
  setup(
      name=project,
      version=version,
      description=description,
      long_description=readme,
      author=module['__author__'],
      author_email=module['__email__'],
      url=github_url,
      download_url='%s/archive/v%s.tar.gz' % (github_url, version),
      py_modules=['pkutils'],
      include_package_data=True,
      package_data={},
      install_requires=requirements,
      test_suite='nose.collector',
      tests_require=dev_requirements,
      license=license,
      zip_safe=False,
      keywords=description.split(' '),
      classifiers=[
          'License :: OSI Approved :: MIT License',
          'Development Status :: 4 - Beta',
          'Natural Language :: English',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Intended Audience :: Developers',
          'Operating System :: POSIX :: Linux',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
      ],
      platforms=['MacOS X', 'Windows', 'Linux'],
  )
  
subject: Replace sets with lists for requirements