From 46937f8620ddaae42187f221c34b5e1a3b66468b Mon Sep 17 00:00:00 2001
From: John Dickinson <me@not.mn>
Date: Fri, 23 Sep 2016 13:01:07 -0700
Subject: [PATCH] add pypy to the bindep "test" profile

According to the bindep docs
(http://docs.openstack.org/infra/bindep/readme.html#profiles),
we can specify profiles for each entry listed.

Also added a bindep env to tox.ini.

Change-Id: Ifb59d3ef2934c3d72ba84b337c38bb7eb14774bb
---
 bindep.txt | 4 ++--
 tox.ini    | 9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/bindep.txt b/bindep.txt
index c587dda2..efc54415 100644
--- a/bindep.txt
+++ b/bindep.txt
@@ -1,5 +1,5 @@
 # This is a cross-platform list tracking distribution packages needed by tests;
 # see http://docs.openstack.org/infra/bindep/ for additional information.
 
-pypy
-pypy-dev
+pypy [test]
+pypy-dev [test]
diff --git a/tox.ini b/tox.ini
index 26cfb112..84806cce 100644
--- a/tox.ini
+++ b/tox.ini
@@ -56,3 +56,12 @@ commands=
 ignore = H101,H301,H306,H401,H403,H404,H405
 show-source = True
 exclude = .venv,.tox,dist,doc,*egg
+
+[testenv:bindep]
+# Do not install any requirements. We want this to be fast and work even if
+# system dependencies are missing, since it's used to tell you what system
+# dependencies are missing! This also means that bindep must be installed
+# separately, outside of the requirements files.
+usedevelop = False
+deps = bindep
+commands = bindep test