old_contents: import os
  import sys
  from setuptools import setup
  from setuptools.command.test import test as TestCommand
  
  
  class PyTest(TestCommand):
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = ['test', '--cov=piper']
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          errno = pytest.main(self.test_args)
          sys.exit(errno)
  
  
  def load_requirements(prefix=None):
      filename = 'requirements.txt'
      if prefix:
          filename = '{0}.{1}'.format(prefix, filename)
  
      path = os.path.join(os.path.dirname(sys.argv[0]), filename)
  
      with open(path) as handle:
          lines = (line.strip() for line in handle)
          return [line for line in lines if line and not line.startswith("#")]
  
  
  setup(
      name='piper',
      version='0.0.1',
      url='https://github.com/thiderman/piper',
      author='Lowe Thiderman',
      author_email='lowe.thiderman@gmail.com',
      description=('Manifest-based build pipeline system'),
      license='MIT',
      packages=['piper'],
      install_requires=load_requirements(),
      tests_require=load_requirements('test'),
      zip_safe=False,
      entry_points={
          'console_scripts': [
              'piper = piper:main',
          ],
      },
      cmdclass={'test': PyTest},
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Operating System :: Unix',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 2.6',
          'Topic :: Software Development :: Build Tools',
      ],
  )
  
new_contents: import sys
  from setuptools import setup
  from setuptools.command.test import test as TestCommand
  
  install_requires = (
      'Logbook==0.6.0',
  )
  
  tests_require = (
      'cov-core==1.7',
      'coverage==3.7.1',
      'mock==1.0.1',
      'py==1.4.20',
      'pytest==2.5.2',
      'pytest-cov==1.6',
      'tox==1.7.1',
      'virtualenv==1.11.4',
  )
  
  
  class PyTest(TestCommand):
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = ['test', '--cov=piper']
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          errno = pytest.main(self.test_args)
          sys.exit(errno)
  
  
  setup(
      name='piper',
      version='0.0.1',
      url='https://github.com/thiderman/piper',
      author='Lowe Thiderman',
      author_email='lowe.thiderman@gmail.com',
      description=('Manifest-based build pipeline system'),
      license='MIT',
      packages=['piper'],
      install_requires=install_requires,
      tests_require=tests_require,
      zip_safe=False,
      entry_points={
          'console_scripts': [
              'piper = piper:main',
          ],
      },
      cmdclass={'test': PyTest},
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Operating System :: Unix',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 2.6',
          'Topic :: Software Development :: Build Tools',
      ],
  )
  
subject: Remove requirements.txt autoloading