old_contents: import sys
  if sys.version_info < (3,):
      sys.exit('scanpy requires Python >= 3.5')
  from pathlib import Path
  
  from setuptools import setup, find_packages
  import versioneer
  
  
  try:
      from scanpy import __author__, __email__
  except ImportError:  # Deps not yet installed
      __author__ = __email__ = ''
  
  setup(
      name='scanpy',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      description='Single-Cell Analysis in Python.',
      long_description=Path('README.rst').read_text('utf-8'),
      url='http://github.com/theislab/scanpy',
      author=__author__,
      author_email=__email__,
      license='BSD',
      python_requires='>=3.5',
      install_requires=[
          l.strip() for l in
          Path('requirements.txt').read_text('utf-8').splitlines()
      ],
      extras_require=dict(
          louvain=['python-igraph', 'louvain>=0.6'],
          leiden=['python-igraph', 'leidenalg'],
          bbknn=['bbknn'],
          doc=['sphinx', 'sphinx_rtd_theme', 'sphinx_autodoc_typehints', 'scanpydoc'],
          test=['pytest>=3.9'],
      ),
      packages=find_packages(),
      # `package_data` does NOT work for source distributions!!!
      # you also need MANIFTEST.in
      # https://stackoverflow.com/questions/7522250/how-to-include-package-data-with-setuptools-distribute
      package_data={'': '*.txt'},
      include_package_data=True,
      zip_safe=False,
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Framework :: Jupyter',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'Natural Language :: English',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Programming Language :: Python :: 3.7',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
          'Topic :: Scientific/Engineering :: Visualization',
      ],
  )
  
new_contents: import sys
  if sys.version_info < (3,):
      sys.exit('scanpy requires Python >= 3.5')
  from pathlib import Path
  
  from setuptools import setup, find_packages
  import versioneer
  
  
  try:
      from scanpy import __author__, __email__
  except ImportError:  # Deps not yet installed
      __author__ = __email__ = ''
  
  setup(
      name='scanpy',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      description='Single-Cell Analysis in Python.',
      long_description=Path('README.rst').read_text('utf-8'),
      url='http://github.com/theislab/scanpy',
      author=__author__,
      author_email=__email__,
      license='BSD',
      python_requires='>=3.5',
      install_requires=[
          l.strip() for l in
          Path('requirements.txt').read_text('utf-8').splitlines()
      ],
      extras_require=dict(
          louvain=['python-igraph', 'louvain>=0.6'],
          leiden=['python-igraph', 'leidenalg'],
          bbknn=['bbknn'],
          doc=['sphinx', 'sphinx_rtd_theme', 'sphinx_autodoc_typehints', 'scanpydoc'],
          test=['pytest>=3.9', 'dask[array]', 'zappy', 'zarr'],
      ),
      packages=find_packages(),
      # `package_data` does NOT work for source distributions!!!
      # you also need MANIFTEST.in
      # https://stackoverflow.com/questions/7522250/how-to-include-package-data-with-setuptools-distribute
      package_data={'': '*.txt'},
      include_package_data=True,
      zip_safe=False,
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Framework :: Jupyter',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'Natural Language :: English',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Programming Language :: Python :: 3.7',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
          'Topic :: Scientific/Engineering :: Visualization',
      ],
  )
  
subject: Install packages necessary to run distributed tests. (#485)