old_contents: from slybot import __version__
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema']
  tests_requires = install_requires
  
  setup(name='slybot',
        version=__version__,
        license='BSD',
        description='Slybot crawler',
        author='Scrapy project',
        author_email='info@scrapy.org',
        url='http://github.com/scrapy/slybot',
        packages=['slybot', 'slybot.fieldtypes', 'slybot.tests', 'slybot.linkextractor'],
        platforms=['Any'],
        scripts=['bin/slybot', 'bin/portiacrawl'],
        install_requires=install_requires,
        tests_requires=tests_requires,
        classifiers=['Development Status :: 4 - Beta',
                     'License :: OSI Approved :: BSD License',
                     'Operating System :: OS Independent',
                     'Programming Language :: Python'])
  
new_contents: from slybot import __version__
  from setuptools import setup, find_packages
  
  install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema']
  tests_requires = install_requires
  
  setup(name='slybot',
        version=__version__,
        license='BSD',
        description='Slybot crawler',
        author='Scrapy project',
        author_email='info@scrapy.org',
        url='http://github.com/scrapy/slybot',
        packages=find_packages(exclude=('tests', 'tests.*')),
        platforms=['Any'],
        scripts=['bin/slybot', 'bin/portiacrawl'],
        install_requires=install_requires,
        tests_requires=tests_requires,
        classifiers=[
            'Development Status :: 4 - Beta',
            'License :: OSI Approved :: BSD License',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Programming Language :: Python :: 2',
            'Programming Language :: Python :: 2.7'
        ])
  
subject: Update Slybot packages and drop support for Python < 2.7