]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add pip-missing-reqs tox env
authorEric Harney <eharney@redhat.com>
Fri, 15 Jan 2016 17:46:09 +0000 (12:46 -0500)
committerEric Harney <eharney@redhat.com>
Tue, 19 Jan 2016 17:01:24 +0000 (12:01 -0500)
This allows discovery of dependencies that are
not listed in [test-]requirements.txt.  Taken from
oslo.db.

Change-Id: I66000bb61e433f8d75ed15d600f2e87ef45140b8

tox.ini

diff --git a/tox.ini b/tox.ini
index fb71b5829a77d8acd2780125582475582da9478f..a7947147e3a6e96daa550479d0f2d3c1a843ff91 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -128,3 +128,11 @@ max-complexity=30
 [hacking]
 local-check-factory = cinder.hacking.checks.factory
 import_exceptions = cinder.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-file=cinder/tests/* cinder