old_contents: from setuptools import setup, find_packages
  
  import sys
  import opencanary
  
  requirements = [
      'Twisted==19.10.0',
      'pyasn1==0.4.5',
      'cryptography==2.5.0',
      'simplejson==3.16.0',
      'requests==2.21.0',
      'zope.interface==4.6.0',
      'PyPDF2==1.26.0',
      'fpdf==1.7.2',
      'passlib==1.7.1',
      'Jinja2==2.10.0',
      'ntlmlib==0.72',
      'hpfeeds3==0.9.8',
      'bcrypt==3.1.7']
  
  # Python 2 requires wsgiref but with python 3 wsgiref is a standard library.
  if sys.version_info.major < 3:
      install_requirements = requirements + ["wsgiref==0.1.2","hpfeeds==1.0"]
  else:
      requirements.append("hpfeeds3")
  
  
  setup(
      name='opencanary',
      version=opencanary.__version__,
      url='http://www.thinkst.com/',
      author='Thinkst Applied Research',
      author_email='info@thinkst.com',
      description='OpenCanary daemon',
      long_description='A low interaction honeypot intended to be run on internal networks.',
      install_requires=requirements,
      setup_requires=[
          'setuptools_git'
      ],
      license='BSD',
      packages=find_packages(exclude='test'),
      scripts=['bin/opencanaryd','bin/opencanary.tac'],
      platforms='any',
      include_package_data=True,
  classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Intended Audience :: Developers",
          "Framework :: Twisted",
          "Topic :: System :: Networking",
          "Topic :: Security",
          "Topic :: System :: Networking :: Monitoring",
          "Natural Language :: English",
          "Operating System :: Unix",
          "Operating System :: POSIX :: Linux",
          "Operating System :: POSIX :: BSD :: FreeBSD",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.5",
          "Programming Language :: Python :: 3.6",
          "Programming Language :: Python :: 3.7",
          "License :: OSI Approved :: BSD License",
      ],
  )
  
new_contents: from setuptools import setup, find_packages
  
  import sys
  import opencanary
  
  requirements = [
      'Twisted==19.10.0',
      'pyasn1==0.4.5',
      'cryptography==2.5.0',
      'simplejson==3.16.0',
      'requests==2.21.0',
      'zope.interface==4.6.0',
      'PyPDF2==1.26.0',
      'fpdf==1.7.2',
      'passlib==1.7.1',
      'Jinja2==2.10.0',
      'ntlmlib==0.72',
      'bcrypt==3.1.7']
  
  # Python 2 requires wsgiref but with python 3 wsgiref is a standard library.
  if sys.version_info.major < 3:
      requirements.append('wsgiref==0.1.2')
      requirements.append('hpfeeds==1.0')
  else:
      requirements.append('hpfeeds3==0.9.8')
  
  
  setup(
      name='opencanary',
      version=opencanary.__version__,
      url='http://www.thinkst.com/',
      author='Thinkst Applied Research',
      author_email='info@thinkst.com',
      description='OpenCanary daemon',
      long_description='A low interaction honeypot intended to be run on internal networks.',
      install_requires=requirements,
      setup_requires=[
          'setuptools_git'
      ],
      license='BSD',
      packages=find_packages(exclude='test'),
      scripts=['bin/opencanaryd','bin/opencanary.tac'],
      platforms='any',
      include_package_data=True,
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Intended Audience :: Developers",
          "Framework :: Twisted",
          "Topic :: System :: Networking",
          "Topic :: Security",
          "Topic :: System :: Networking :: Monitoring",
          "Natural Language :: English",
          "Operating System :: Unix",
          "Operating System :: POSIX :: Linux",
          "Operating System :: POSIX :: BSD :: FreeBSD",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.5",
          "Programming Language :: Python :: 3.6",
          "Programming Language :: Python :: 3.7",
          "License :: OSI Approved :: BSD License",
      ],
  )
  
subject: Fix requirements