old_contents: #!/usr/bin/env python
  # -*- encoding: utf-8 -*-
  from __future__ import absolute_import, print_function
  
  import io
  import re
  from glob import glob
  from os import path
  from os.path import basename
  from os.path import dirname
  from os.path import join
  from os.path import splitext
  
  from setuptools import find_packages
  from setuptools import setup
  
  
  def read(*names, **kwargs):
      return io.open(
          join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
      ).read()
  
  
  here = path.abspath(path.dirname(__file__))
  
  with open(path.join(here, "requirements.txt")) as requirements_file:
      # Parse requirements.txt, ignoring any commented-out lines.
      requirements = [
          line
          for line in requirements_file.read().splitlines()
          if not line.startswith("#")
      ]
  
  setup(
      name="mrfitty",
      version="0.14.0",
      license="MIT",
      description="A package for linear least squares fitting XANES data.",
      long_description="%s\n%s"
      % (
          read("README.rst"),
          re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
      ),
      author="Joshua Lynch",
      author_email="joshua.kevin.lynch@gmail.com",
      url="https://github.com/jklynch/mr-fitty",
      packages=find_packages("src"),
      package_dir={"": "src"},
      py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
      include_package_data=True,
      zip_safe=False,
      classifiers=[
          "Development Status :: 2 - Betas",
          "Environment :: Console",
          "Intended Audience :: Science/Research",
          "License :: OSI Approved :: MIT License",
          "Operating System :: Unix",
          "Operating System :: POSIX",
          "Operating System :: Microsoft :: Windows",
          "Programming Language :: Python",
          "Programming Language :: Python :: 3.6",
      ],
      keywords=[
          # eg: 'keyword1', 'keyword2', 'keyword3',
      ],
      install_requires=requirements,
      extras_require={"test": ["pytest", "pyfakefs", "pytest-cov"]},
      entry_points={"console_scripts": ["mrfitty = mrfitty.__main__:main"]},
  )
  
new_contents: """
  The MIT License (MIT)
  
  Copyright (c) 2015-2019 Joshua Lynch, Sarah Nicholas
  
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
  """
  import io
  import re
  from glob import glob
  from os import path
  from os.path import basename
  from os.path import dirname
  from os.path import join
  from os.path import splitext
  
  from setuptools import find_packages
  from setuptools import setup
  
  
  def read(*names, **kwargs):
      return io.open(
          join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
      ).read()
  
  
  here = path.abspath(path.dirname(__file__))
  
  with open(path.join(here, "requirements.txt")) as requirements_file:
      # Parse requirements.txt, ignoring any commented-out lines.
      requirements = [
          line
          for line in requirements_file.read().splitlines()
          if not line.startswith("#")
      ]
  
  setup(
      name="mrfitty",
      version="0.14.0",
      license="MIT",
      description="A package for linear least squares fitting XANES data.",
      long_description="%s\n%s"
      % (
          read("README.rst"),
          re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
      ),
      author="Joshua Lynch",
      author_email="joshua.kevin.lynch@gmail.com",
      url="https://github.com/jklynch/mr-fitty",
      packages=find_packages("src"),
      package_dir={"": "src"},
      py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
      include_package_data=True,
      zip_safe=False,
      classifiers=[
          "Development Status :: 2 - Betas",
          "Environment :: Console",
          "Intended Audience :: Science/Research",
          "License :: OSI Approved :: MIT License",
          "Operating System :: Unix",
          "Operating System :: POSIX",
          "Operating System :: Microsoft :: Windows",
          "Programming Language :: Python",
          "Programming Language :: Python :: 3.6",
      ],
      keywords=[
          # eg: 'keyword1', 'keyword2', 'keyword3',
      ],
      install_requires=requirements,
      extras_require={"test": ["pytest", "pyfakefs", "pytest-cov"]},
      entry_points={"console_scripts": ["mrfitty = mrfitty.__main__:main"]},
  )
  
subject: add license remove silly business