old_contents: from setuptools import setup, find_packages
  import subprocess
  import os
  import re
  
  version_py = os.path.join(os.path.dirname(__file__), 'codebom', '_version.py')
  
  if not os.path.exists(version_py):
      with open(version_py, 'w') as hdl:
          version = subprocess.check_output(['git', 'describe', '--tags']).strip()
          hdl.write('__version__ = ' + repr(version))
  
  exec(open(version_py).read())
  
  
  setup(
      name="codebom",
      author='Greg Fitzgerald',
      author_email='garious@gmail.com',
      url='https://github.com/codebom/codebom',
      version=re.sub(r'-(\d+)-', r'+\1.', __version__),  # Make PEP 440 compliant
      packages=find_packages(),
      package_data={'codebom': ['licenses/*.txt']},
      scripts=['bin/codebom'],
      install_requires=[
        'ruamel.yaml==0.10.11',
        'enum34==1.0.4',
        'graphviz==0.4.7',
      ]
  )
  
new_contents: from setuptools import setup, find_packages
  import subprocess
  import os
  import re
  
  version_py = os.path.join(os.path.dirname(__file__), 'codebom', '_version.py')
  
  if not os.path.exists(version_py):
      with open(version_py, 'w') as hdl:
          version = str(subprocess.check_output(['git', 'describe', '--tags'])).strip()
          hdl.write('__version__ = ' + repr(version))
  
  exec(open(version_py).read())
  
  
  setup(
      name="codebom",
      author='Greg Fitzgerald',
      author_email='garious@gmail.com',
      url='https://github.com/codebom/codebom',
      version=re.sub(r'-(\d+)-', r'+\1.', __version__),  # Make PEP 440 compliant
      packages=find_packages(),
      package_data={'codebom': ['licenses/*.txt']},
      scripts=['bin/codebom'],
      install_requires=[
        'ruamel.yaml==0.10.11',
        'enum34==1.0.4',
        'graphviz==0.4.7',
      ]
  )
  
subject: Fix setup.py for Python 3