Merge "Check requirements.txt files for missing (used) requirements"

This commit is contained in:
Jenkins 2014-09-17 03:31:53 +00:00 committed by Gerrit Code Review
commit e1e9459888
2 changed files with 11 additions and 1 deletions

View File

@ -42,5 +42,6 @@ pycadf>=0.6.0
oslo.messaging>=1.4.0.0a3
oslo.i18n>=0.3.0 # Apache-2.0
lockfile>=0.8
simplejson>=2.2.0
rfc3986>=0.2.0 # Apache-2.0
oslo.vmware>=0.5 # Apache-2.0

11
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = py26,py27,py33,pep8
envlist = py26,py27,py33,pep8,pip-missing-reqs
skipsdist = True
[testenv]
@ -59,3 +59,12 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,t
[hacking]
local-check-factory = nova.hacking.checks.factory
import_exceptions = nova.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
-rrequirements.txt
commands=pip-missing-reqs -d --ignore-file=nova/tests/* nova