old_contents: # -*- coding: utf-8 -*-
  from setuptools import setup, find_packages
  import re
  
  
  def get_version():
      """Get the current version of the hotness package"""
      with open("hotness/__init__.py", "r") as fd:
          regex = r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]'
          version = re.search(regex, fd.read(), re.MULTILINE).group(1)
      if not version:
          raise RuntimeError("No version set in hotness/__init__.py")
      return version
  
  
  def get_requirements(requirements_file="requirements.txt"):
      """Get the contents of a file listing the requirements.
  
      :arg requirements_file: path to a requirements file
      :type requirements_file: string
      :returns: the list of requirements, or an empty list if
                `requirements_file` could not be opened or read
      :return type: list
      """
  
      lines = open(requirements_file).readlines()
      return [line.rstrip().split("#")[0] for line in lines if not line.startswith("#")]
  
  
  setup(
      name="the-new-hotness",
      version=get_version(),
      description="Consume anitya fedmsg messages to file bugzilla bugs",
      license="LGPLv2+",
      author="Ralph Bean",
      author_email="rbean@redhat.com",
      url="https://github.com/fedora-infra/the-new-hotness",
      install_requires=get_requirements(),
      tests_require=get_requirements("dev-requirements.txt"),
      packages=find_packages(exclude=("hotness.tests", "hotness.tests.*")),
      test_suite="hotness.tests",
      entry_points="""
      [moksha.consumer]
      bug_filer = hotness.consumers:BugzillaTicketFiler
      """,
  )
  
new_contents: # -*- coding: utf-8 -*-
  from setuptools import setup, find_packages
  import re
  
  
  def get_version():
      """Get the current version of the hotness package"""
      with open("hotness/__init__.py", "r") as fd:
          regex = r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]'
          version = re.search(regex, fd.read(), re.MULTILINE).group(1)
      if not version:
          raise RuntimeError("No version set in hotness/__init__.py")
      return version
  
  
  def get_requirements(requirements_file="requirements.txt"):
      """Get the contents of a file listing the requirements.
  
      :arg requirements_file: path to a requirements file
      :type requirements_file: string
      :returns: the list of requirements, or an empty list if
                `requirements_file` could not be opened or read
      :return type: list
      """
  
      lines = open(requirements_file).readlines()
      return [line.rstrip().split("#")[0] for line in lines if not line.startswith("#")]
  
  
  setup(
      name="the-new-hotness",
      version=get_version(),
      description="Consume anitya fedora messaging messages to file bugzilla bugs",
      license="LGPLv2+",
      author="Ralph Bean",
      author_email="rbean@redhat.com",
      url="https://github.com/fedora-infra/the-new-hotness",
      install_requires=get_requirements(),
      tests_require=get_requirements("dev-requirements.txt"),
      packages=find_packages(exclude=("hotness.tests", "hotness.tests.*")),
      test_suite="hotness.tests"
  )
  
subject: Remove mentions about fedmsg and moksha from setup.py