Merge "add tox env for running requirements-check"

This commit is contained in:
Zuul 2018-07-12 14:29:15 +00:00 committed by Gerrit Code Review
commit 29b1d8981f
2 changed files with 16 additions and 0 deletions

View File

@ -71,6 +71,16 @@ requirements is produced. If the inputs are lower-constraints.txt, the
output includes the highest version of each package referenced in the
files.
check-requirements
------------------
Run the validation checks from the ``requirements-check`` job locally
using the ``requirements-check`` tox environment.
Run::
$ tox -e requirements-check -- /path/to/repo/to/test
Proposing changes
=================

View File

@ -95,6 +95,12 @@ basepython = python3.5
[testenv:py36]
basepython = python3.6
[testenv:requirements-check]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands =
{toxinidir}/playbooks/files/project-requirements-change.py --local {posargs}
[testenv:babel]
# Use the local upper-constraints.txt file
deps = Babel