old_contents: # -*- coding: utf-8 -*-
  
  from distutils.core import setup
  
  import os
  import usedup
  
  
  def _load(filename):
      """Load file contents from package base path."""
      base = os.path.dirname(os.path.abspath(__file__))
      loadfile = os.path.join(base, filename)
      with open(loadfile, 'r') as f_in:
          return f_in.read()
  
  
  readme = _load('README.txt')
  requires = [i for i in _load('requirements.txt').split('\n') if i.strip()]
  
  
  classifiers = [
      'Development Status :: 4 - Beta',
      'Environment :: Console',
      'Operating System :: OS Independent',
      'License :: OSI Approved :: MIT License',
      'Programming Language :: Python :: 3.4',
      'Programming Language :: Python :: 3.5',
      'Programming Language :: Python :: 3 :: Only',
      'Topic :: Utilities'
      ]
  
  
  setup(name=usedup.__title__,
        version=usedup.__version__,
        license=usedup.__license__,
        description='Basic Datamine Admin Tools',
        long_description=readme,
        author=usedup.__author__,
        url='https://github.com/LeviKanwischer/usedup',
        packages=['usedup'],
        install_requires=requires,
        entry_points={'console_scripts': ['usedup = usedup.__main__:cli']},
        classifiers=classifiers
        )
  
new_contents: # -*- coding: utf-8 -*-
  
  """Datamine (Upsight.com) CLI Admin Tools"""
  
  import codecs
  import os
  import re
  from setuptools import setup, find_packages
  
  
  NAME = 'usedup'
  
  
  def read(filename):
      """Load file contents from setup.py path."""
      here = os.path.dirname(os.path.abspath(__file__))
      filepath = os.path.join(here, filename)
      if not os.path.isfile(filepath):
          raise OSError('%s missing from `%s` source.' % (filename, NAME))
  
      with codecs.open(filepath, encoding='utf-8') as infile:
          return infile.read()
  
  
  def version(baked):
      """Extract package version metadata."""
      regex = r'''__version__\s*=\s*['\"]([^'\"]*)['\"]'''
      source = read(os.path.join(NAME, '__init__.py'))
      match = re.search(regex, source, re.M)
      return match.group(1) if match else baked
  
  
  CLASSIFIERS = ['Development Status :: 4 - Beta',
                 'Environment :: Console',
                 'Intended Audience :: Developers',
                 'License :: OSI Approved :: MIT License',
                 'Natural Language :: English',
                 'Operating System :: OS Independent',
                 'Programming Language :: Python',
                 'Programming Language :: Python :: 2',
                 'Programming Language :: Python :: 2.6',
                 'Programming Language :: Python :: 2.7',
                 'Programming Language :: Python :: 3',
                 'Programming Language :: Python :: 3.4',
                 'Programming Language :: Python :: 3.5',
                 'Topic :: Utilities',
                ]
  
  
  setup(name=NAME,
        version=version(baked='1.0.0b1'),
        author='Levi Kanwischer',
        author_email='levi@kanwischer.me',
        license='MIT',
        url='https://github.com/LeviKanwischer/%s' % NAME,
        description=__doc__,
        long_description=read('README.rst'),
        classifiers=CLASSIFIERS,
        keywords='Datamine Upsight Kontagent',
        install_requires=['click>=4.1', 'requests>=2.7.0'],
        entry_points={'console_scripts': ['usedup = usedup.__main__:cli']},
        packages=find_packages(),
       )
  
subject: Update setup() structure & formatting