old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from __future__ import print_function
  
  from invoke import run, task
  from invoke.util import log
  
  
  @task
  def test():
      """test - run the test runner."""
      run('python setup.py test', pty=True)
  
  
  @task
  def clean():
      """clean - remove build artifacts."""
      run('rm -rf build/')
      run('rm -rf dist/')
      run('rm -rf chanjo-report.egg-info')
      run('find . -name *.pyc -delete')
      run('find . -name *.pyo -delete')
      run('find . -name *~ -delete')
      run('find . -name __pycache__ -delete')
      log.info('cleaned up')
  
  
  @task
  def lint():
      """lint - check style with flake8."""
      run('flake8 chanjo-report tests')
  
  
  @task
  def coverage():
      """coverage - check code coverage quickly with the default Python."""
      run('coverage run --source chanjo-report setup.py test')
      run('coverage report -m')
      run('coverage html')
      run('open htmlcov/index.html')
      log.info('collected test coverage stats')
  
  
  @task
  def babel(locale='sv'):
      """Babel compile."""
      run("python setup.py compile_catalog "
          "--directory `find -name translations` --locale {} -f".format(locale))
      log.info("compiled Babel translations: {}".format(locale))
  
  
  @task(clean, babel)
  def publish():
      """publish - package and upload a release to the cheeseshop."""
      run('python setup.py sdist upload', pty=True)
      run('python setup.py bdist_wheel upload', pty=True)
      log.info('published new release')
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from __future__ import print_function
  
  from invoke import run, task
  from invoke.util import log
  
  
  @task
  def test():
      """test - run the test runner."""
      run('python setup.py test', pty=True)
  
  
  @task
  def clean():
      """clean - remove build artifacts."""
      run('rm -rf build/')
      run('rm -rf dist/')
      run('rm -rf chanjo-report.egg-info')
      run('find . -name *.pyc -delete')
      run('find . -name *.pyo -delete')
      run('find . -name *~ -delete')
      run('find . -name __pycache__ -delete')
      log.info('cleaned up')
  
  
  @task
  def lint():
      """lint - check style with flake8."""
      run('flake8 chanjo-report tests')
  
  
  @task
  def coverage():
      """coverage - check code coverage quickly with the default Python."""
      run('coverage run --source chanjo-report setup.py test')
      run('coverage report -m')
      run('coverage html')
      run('open htmlcov/index.html')
      log.info('collected test coverage stats')
  
  
  @task
  def babel(locale='sv'):
      """Babel compile."""
      run("python setup.py compile_catalog "
          "--directory `find . -name translations` --locale {} -f".format(locale))
      log.info("compiled Babel translations: {}".format(locale))
  
  
  @task(clean, babel)
  def publish():
      """publish - package and upload a release to the cheeseshop."""
      run('python setup.py sdist upload', pty=True)
      run('python setup.py bdist_wheel upload', pty=True)
      log.info('published new release')
  
subject: make inv babel task compatible with mac