Have tox install via setup.py develop
tox 1.6 was released, which means that we can now take advantage of the feature we added to it - which is using setup.py develop to install the code into the virtualenv. The logic was taken from run_tests.sh - so the performance issues around using tox vs. using install_venv should now be gone. Additionally, override the tox pip install command to avoid using the "--pre" option which is the default in tox. "--pre" means "Include pre-release and development versions." By default, pip will only install stable versions of software, and that is the behavior we want. Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438 Co-Authored-By: Monty Taylor <mordred@inaugust.com>
This commit is contained in:
parent
cc6f374cd9
commit
de723d969e
1
AUTHORS
1
AUTHORS
|
@ -3,6 +3,7 @@ Alexander Kuznetsov <akuznetsov@mirantis.com>
|
||||||
Andrew Lazarev <alazarev@mirantis.com>
|
Andrew Lazarev <alazarev@mirantis.com>
|
||||||
Chad Roberts <croberts@redhat.com>
|
Chad Roberts <croberts@redhat.com>
|
||||||
Dmitry Mescheryakov <dmescheryakov@mirantis.com>
|
Dmitry Mescheryakov <dmescheryakov@mirantis.com>
|
||||||
|
James E. Blair <jeblair@openstack.org>
|
||||||
Jeremy Stanley <fungi@yuggoth.org>
|
Jeremy Stanley <fungi@yuggoth.org>
|
||||||
Matthew Farrellee <matt@redhat.com>
|
Matthew Farrellee <matt@redhat.com>
|
||||||
Nadya Privalova <nprivalova@mirantis.com>
|
Nadya Privalova <nprivalova@mirantis.com>
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -1,7 +1,11 @@
|
||||||
[tox]
|
[tox]
|
||||||
|
minversion = 1.6
|
||||||
|
skipsdist = True
|
||||||
envlist = py26,py27,pep8
|
envlist = py26,py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
usedevelop = True
|
||||||
|
install_command = pip install -U {opts} {packages}
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
NOSE_WITH_OPENSTACK=1
|
NOSE_WITH_OPENSTACK=1
|
||||||
|
|
Loading…
Reference in New Issue