From 8d1bb486fda1dec45069cb47bcae445456a008e3 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 25 Jun 2015 21:25:35 -0400 Subject: Add tox target to find missing requirements Change-Id: I8c0f7bb9718c851e20a1ea7e2d066cf5f664e9a1 --- tox.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 95b682b..95e398e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py26,py27,py34,pep8 +envlist = py26,py27,py34,pep8,pip-missing-reqs # NOTE(dhellmann): We cannot set skipdist=True # for oslo libraries because of the namespace package. #skipsdist = True @@ -60,3 +60,11 @@ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build [hacking] import_exceptions = oslo_db._i18n + +[testenv:pip-missing-reqs] +# do not install test-requirements as that will pollute the virtualenv for +# determining missing packages +# this also means that pip-missing-reqs must be installed separately, outside +# of the requirements.txt files +deps = pip_missing_reqs +commands = pip-missing-reqs -d --ignore-module=oslo_db* --ignore-module=pkg_resources --ignore-file=oslo_db/tests/* oslo_db \ No newline at end of file -- cgit v1.2.1