old_contents: __author__ = 'Lei Xu <eddyxu@gmail.com>'
  __version__ = '0.0.1'
  
  __classifiers__ = [
      'Development Status :: 2 - Pre-Alpha',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: Apache Software License',
      'Operating System :: OS Independent',
      'Programming Language :: Python',
      'Topic :: Internet :: WWW/HTTP',
      'Topic :: Software Development :: Libraries']
  
  __copyright__ = "2013, %s " % __author__
  __license__ = """
      Copyright %s.
  
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      """ % __copyright__
  
  
  def run():
      """Run cpp coverage
      """
      import yaml
      import os
      import argparse
      from coveralls import coverage, report
  
      parser = argparse.ArgumentParser('coveralls')
      parser.add_argument('--gcov', metavar='FILE', default='gcov',
                          help='Sets the location of gcov')
      parser.add_argument('-r', '--root', metavar='DIR', default='.',
                          help='Sets the root directory')
      parser.add_argument('-e', '--exclude', metavar='DIR|FILE', action='append',
                          help='Exclude file or directory.')
      parser.add_argument('--coveralls_yaml', '-y', default='.coveralls.yml',
                          help='coveralls yaml file name')
      args = parser.parse_args()
  
      yml = {}
      try:
          with open(args.coveralls_yaml, 'r') as fp:
              yml = yaml.load(fp)
      except:
          pass
      yml = yml or {}
  
      args.repo_token = yml.get('repo_token', '')
      args.service_name = yml.get('service_name', 'travis-ci')
      args.service_job_id = os.environ.get('TRAVIS_JOB_ID', '')
  
      coverage.run_gcov(args)
      cov_report = coverage.collect(args)
      report.post_report(cov_report)
  
new_contents: __author__ = 'Lei Xu <eddyxu@gmail.com>'
  __version__ = '0.0.2'
  
  __classifiers__ = [
      'Development Status :: 2 - Pre-Alpha',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: Apache Software License',
      'Operating System :: OS Independent',
      'Programming Language :: Python',
      'Topic :: Internet :: WWW/HTTP',
      'Topic :: Software Development :: Libraries']
  
  __copyright__ = "2013, %s " % __author__
  __license__ = """
      Copyright %s.
  
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      """ % __copyright__
  
  
  def run():
      """Run cpp coverage
      """
      import yaml
      import os
      import argparse
      from coveralls import coverage, report
  
      parser = argparse.ArgumentParser('coveralls')
      parser.add_argument('--gcov', metavar='FILE', default='gcov',
                          help='Sets the location of gcov')
      parser.add_argument('-r', '--root', metavar='DIR', default='.',
                          help='Sets the root directory')
      parser.add_argument('-e', '--exclude', metavar='DIR|FILE', action='append',
                          help='Exclude file or directory.')
      parser.add_argument('--coveralls_yaml', '-y', default='.coveralls.yml',
                          help='coveralls yaml file name')
      args = parser.parse_args()
  
      yml = {}
      try:
          with open(args.coveralls_yaml, 'r') as fp:
              yml = yaml.load(fp)
      except:
          pass
      yml = yml or {}
  
      args.repo_token = yml.get('repo_token', '')
      args.service_name = yml.get('service_name', 'travis-ci')
      args.service_job_id = os.environ.get('TRAVIS_JOB_ID', '')
  
      coverage.run_gcov(args)
      cov_report = coverage.collect(args)
      report.post_report(cov_report)
  
subject: Upgrade to 0.0.2