old_contents: from setuptools import setup, find_packages
  import sys
  
  
  install_requires = [
      'six>=1.10',
      'numpy>=1.10',
      'networkx>=1.10',
      'tqdm>=3.7.1',
      'click>=6.6',
  ]
  
  if sys.version_info < (3, 4, 0):
      install_requires.append('enum34')
  
  
  def get_version():
      version_file = 'mordred/_version.py'
  
      sandbox = {}
      exec(open(version_file).read(), sandbox, sandbox)
      return sandbox['__version__']
  
  
  setup(
      name='mordred',
      version=get_version(),
      packages=find_packages(),
  
      package_data={
          'mordred': ['data/*'],
          'mordred.tests': ['references/*', 'references/**/*'],
      },
  
      install_requires=install_requires,
  
      extras_require=dict(
          test=[
              'nose>=1.3',
              'PyYaml>=3.11',
          ]
      ),
  
      test_suite='nose.collector',
  
      author='Hirotomo Moriwaki',
      author_email='philopon.dependence@gmail.com',
      license='BSD3',
  )
  
new_contents: from setuptools import setup, find_packages
  import sys
  import os
  
  
  install_requires = [
      'six>=1.10',
      'numpy>=1.10',
      'networkx>=1.10',
      'tqdm>=3.7.1',
      'click>=6.6',
  ]
  
  if sys.version_info < (3, 4, 0):
      install_requires.append('enum34')
  
  
  def get_version():
      version_file = 'mordred/_version.py'
  
      sandbox = {}
      exec(open(version_file).read(), sandbox, sandbox)
      return sandbox['__version__']
  
  
  def get_test_data():
      for p, _, fs in os.walk('mordred/tests/references'):
          p = p.split(os.sep)[3:]
  
          for f in fs:
              yield os.path.join(*(p + [f]))
  
  
  setup(
      name='mordred',
      version=get_version(),
      packages=find_packages(),
  
      package_data={
          'mordred': ['data/*.txt'],
          'mordred.tests': get_test_data(),
      },
  
      install_requires=install_requires,
  
      extras_require=dict(
          test=[
              'nose>=1.3',
              'PyYaml>=3.11',
          ]
      ),
  
      test_suite='nose.collector',
  
      author='Hirotomo Moriwaki',
      author_email='philopon.dependence@gmail.com',
      license='BSD3',
  )
  
subject: update setup.py