diff --git a/tools/install_venv.py b/tools/install_venv.py index d7231ac7a..0b1d843ae 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -168,7 +168,8 @@ def create_virtualenv(venv=VENV, no_site_packages=True): run_command(['virtualenv', '-q', VENV]) print 'done.' print 'Installing pip in virtualenv...', - if not run_command(['tools/with_venv.sh', 'easy_install', 'pip']).strip(): + if not run_command(['tools/with_venv.sh', 'easy_install', + 'pip>1.0']).strip(): die("Failed to install pip.") print 'done.' diff --git a/tox.ini b/tox.ini index afdb8a629..c81dd64d8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,14 @@ [tox] -envlist = py25,py26,py27 +envlist = py26,py27 [testenv] -deps = nose - mock - mox -commands = nosetests +deps = -r{toxinidir}/tools/pip-requires +commands = /bin/bash run_tests.sh -N + +[testenv:pep8] +deps = pep8 +commands = /bin/bash run_tests.sh -N --pep8 + +[testenv:coverage] +deps = pep8 +commands = /bin/bash run_tests.sh -N --with-coverage