old_contents: from setuptools import setup
  from setuptools.command.test import test as Test
  from distutils.version import StrictVersion
  import sys
  import os.path
  import shutil
  
  try:
      import numpy
  except ImportError:
      raise ImportError("experimentator requires numpy, try 'pip install numpy'")
  
  try:
      import pandas
      if StrictVersion(pandas.__version__) < StrictVersion('0.13.1'):
          raise ImportError("experimentator requires pandas >= v0.13.1, try 'pip install -U pandas'")
  except ImportError:
      raise ImportError("experimentator requires pandas, try 'pip install pandas'")
  
  #  Read version number.
  with open('experimentator/__version__.py') as f:
      exec(f.read())
  
  # Read README
  with open('README.rst') as f:
      readme = f.read()
  
  # Delete dist folder (necessary due to setuptools bug).
  if os.path.exists('dist') and sys.path[0] == 'experimentator':
      shutil.rmtree('dist')
  
  
  # Code from py.test to enable python setup.py test.
  class PyTest(Test):
      def finalize_options(self):
          super().finalize_options()
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          error = pytest.main(self.test_args)
          sys.exit(error)
  
  
  setup(name='experimentator',
        packages=['experimentator'],
        version=__version__,
        author='Henry S. Harrison',
        author_email='henry.schafer.harrison@gmail.com',
        url='https://bitbucket.org/hharrison/experimentator',
        license='MIT',
        download_url='https://bitbucket.org/hharrison/experimentator/get/default.tar.gz',
        description='Experiment builder',
        long_description=readme,
        keywords='experiment science psychology experimental design research',
        classifiers=[
            'Programming Language :: Python',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.3',
            'License :: OSI Approved :: MIT License',
            'Operating System :: OS Independent',
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Science/Research',
            'Topic :: Scientific/Engineering',
            'Topic :: Software Development :: Libraries :: Python Modules',
            'Topic :: Utilities',
        ],
        entry_points={
            'console_scripts': ['exp = experimentator.cli:main'],
        },
        install_requires=['docopt>=0.6.1'],
        tests_require=['pytest'],
        cmdclass={'test': PyTest},
        package_data={
            '': ['*.txt', '*.rst'],
        },
        )
  
new_contents: from setuptools import setup
  from setuptools.command.test import test as Test
  from distutils.version import StrictVersion
  import sys
  import os.path
  import shutil
  
  try:
      import numpy
  except ImportError:
      raise ImportError("experimentator requires numpy, try 'pip install numpy'")
  
  try:
      import pandas
      if StrictVersion(pandas.__version__) < StrictVersion('0.13.1'):
          raise ImportError("experimentator requires pandas >= v0.13.1, try 'pip install -U pandas'")
  except ImportError:
      raise ImportError("experimentator requires pandas, try 'pip install pandas'")
  
  #  Read version number.
  with open('experimentator/__version__.py') as f:
      exec(f.read())
  
  # Read README
  with open('README.rst') as f:
      readme = f.read()
  
  # Delete dist folder (necessary due to setuptools bug).
  if os.path.exists('dist') and sys.path[0] == 'experimentator':
      shutil.rmtree('dist')
  
  
  # Code from py.test to enable python setup.py test.
  class PyTest(Test):
      def finalize_options(self):
          super().finalize_options()
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          error = pytest.main(self.test_args)
          sys.exit(error)
  
  
  setup(name='experimentator',
        packages=['experimentator'],
        version=__version__,
        author='Henry S. Harrison',
        author_email='henry.schafer.harrison@gmail.com',
        url='https://bitbucket.org/hharrison/experimentator',
        license='MIT',
        download_url='https://bitbucket.org/hharrison/experimentator/get/default.tar.gz',
        description='Experiment builder',
        long_description=readme,
        keywords='experiment science psychology experimental design research',
        classifiers=[
            'Programming Language :: Python',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.3',
            'License :: OSI Approved :: MIT License',
            'Operating System :: OS Independent',
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Science/Research',
            'Topic :: Scientific/Engineering',
            'Topic :: Software Development :: Libraries :: Python Modules',
            'Topic :: Utilities',
        ],
        entry_points={
            'console_scripts': ['exp = experimentator.cli:main'],
        },
        install_requires=['docopt>=0.6.1', 'schema>=0.2.0'],
        tests_require=['pytest'],
        cmdclass={'test': PyTest},
        package_data={
            '': ['*.txt', '*.rst'],
        },
        )
  
subject: add schema to install_requires