From ec00f2981fa467cbe489e57b789167a9580fb2b6 Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Tue, 17 Sep 2013 16:34:21 +0000
Subject: [PATCH] Make sure pip upgrades itself in tox

* tox.ini: Upgrade pip within tox virtualenvs for
openstack-infra/config. Without doing this, tox uses the system pip
version within the constructed virtualenv, and may inadvertently
pull in prerelease versions of dependencies from PyPI. Note that the
option used requires tox 1.6 or newer.

Change-Id: Ie5276a4437e72c5f5a8d1ecf5a7c07977fa5bd77
---
 tox.ini | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tox.ini b/tox.ini
index a078c8fe1b..23aca8e84d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,10 @@
 [tox]
+minversion = 1.6
 envlist = pyflakes,pep8
 
+[testenv]
+install_command = pip install -U {opts} {packages}
+
 [testenv:pyflakes]
 deps = pyflakes
 commands = pyflakes modules setup.py