old_contents: version = '0.07'
  
  _versplit = version.replace('dev', '').split('.')
  major = int(_versplit[0])
  minor = int(_versplit[1])
  if len(_versplit) < 3:
      bugfix = 0
  else:
      bugfix = int(_versplit[2])
  del _versplit
  
  release = not version.endswith('dev')
  
  
  def _get_git_devstr():
      """Determines the number of revisions in this repository and returns "" if
      this is not possible.
  
      Returns
      -------
      devstr : str
          A string that begins with 'dev' to be appended to the version number
          string.
      """
      from os import path
      from subprocess import Popen, PIPE
  
      currdir = path.abspath(path.split(__file__)[0])
  
      p = Popen(['git', 'rev-list', 'HEAD'], cwd=currdir,
                stdout=PIPE, stderr=PIPE, stdin=PIPE)
      stdout, stderr = p.communicate()
  
      if p.returncode != 0:
          return ''
      else:
          revs = stdout.split('\n')
          return  '-r%s-%s' % (len(revs), revs[0][:7])
  
  try:
      if not release:
          version = version + _get_git_devstr()
  except OSError:
      pass
  
  if __name__ == '__main__':
      print version
  
new_contents: version = '0.08'
  
  _versplit = version.replace('dev', '').split('.')
  major = int(_versplit[0])
  minor = int(_versplit[1])
  if len(_versplit) < 3:
      bugfix = 0
  else:
      bugfix = int(_versplit[2])
  del _versplit
  
  release = not version.endswith('dev')
  
  
  def _get_git_devstr():
      """Determines the number of revisions in this repository and returns "" if
      this is not possible.
  
      Returns
      -------
      devstr : str
          A string that begins with 'dev' to be appended to the version number
          string.
      """
      from os import path
      from subprocess import Popen, PIPE
  
      currdir = path.abspath(path.split(__file__)[0])
  
      p = Popen(['git', 'rev-list', 'HEAD'], cwd=currdir,
                stdout=PIPE, stderr=PIPE, stdin=PIPE)
      stdout, stderr = p.communicate()
  
      if p.returncode != 0:
          return ''
      else:
          revs = stdout.split('\n')
          return  '-r%s-%s' % (len(revs), revs[0][:7])
  
  try:
      if not release:
          version = version + _get_git_devstr()
  except OSError:
      pass
  
  if __name__ == '__main__':
      print version
  
subject: Update version to 0.08