old_contents: from invoke import run, task
  
  
  @task
  def test():
      run("nosetests")
  
  
  @task
  def bump(part):
      assert part in ('major', 'minor', 'patch')
      run("bumpversion %s" % part)
  
  
  @task
  def upload():
      run("python setup.py sdist upload")
  
  
  @task('test')
  def coverage():
      run("coverage combine")
      run("coverage html")
      run("open coverage_html_report/index.html")
  
new_contents: from invoke import run, task
  
  
  @task
  def bump(part):
      assert part in ('major', 'minor', 'patch')
      run("bumpversion %s" % part)
  
  
  @task
  def upload():
      run("python setup.py sdist upload")
  
  
  @task
  def coverage():
      run("nosetests")
      run("coverage combine")
      run("coverage html")
      run("open coverage_html_report/index.html")
  
subject: remove nosetests invoke task because when ctrl-c it hides the traceback of tests