@task
def test_tarball(release='2'):
 if (release not in {'2', '3'}):
  raise ValueError(("release must be one of '2', '3', not %s" % release))
 venv = '/home/vagrant/repos/test-{release}-virtualenv'.format(release=release)
 tarball_formatter_dict = tarball_formatter()
 with use_venv(release):
  make_virtualenv(venv)
  with virtualenv(venv):
   run('cp /vagrant/release/{source} releasetar.tar'.format(**tarball_formatter_dict))
   run('tar xvf releasetar.tar')
   with cd('/home/vagrant/{source-orig-notar}'.format(**tarball_formatter_dict)):
    run('python setup.py install')
    run('python -c "import sympy; print(sympy.__version__)"')

@ task def test_tarball ( release = '2' ) : if ( release not in { '2' , '3' } ) : raise ValueError ( ( "release must be one of '2', '3', not %s" % release ) ) venv = '/home/vagrant/repos/test-{release}-virtualenv' . format ( release = release ) tarball_formatter_dict = tarball_formatter ( ) with use_venv ( release ) : make_virtualenv ( venv ) with virtualenv ( venv ) : run ( 'cp /vagrant/release/{source} releasetar.tar' . format ( ** tarball_formatter_dict ) ) run ( 'tar xvf releasetar.tar' ) with cd ( '/home/vagrant/{source-orig-notar}' . format ( ** tarball_formatter_dict ) ) : run ( 'python setup.py install' ) run ( 'python -c "import sympy; print(sympy.__version__)"' )
test that the tarball can be unpacked and installed .