summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-12 14:29:15 +0000
committerGerrit Code Review <review@openstack.org>2018-07-12 14:29:15 +0000
commit29b1d8981fd16a7690cc594dd4b9a397a5554683 (patch)
treea63d09aa3de489190c720e23595e54c4f386a8bf
parent8e2db7a28de3b15e7d357fb358daa38a563bdb10 (diff)
parent0ae1c7fd199f266a0ec57fd453fb5887b10f85b4 (diff)
Merge "add tox env for running requirements-check"
-rw-r--r--README.rst10
-rw-r--r--tox.ini6
2 files changed, 16 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 2295ca4..7f6c33d 100644
--- a/README.rst
+++ b/README.rst
@@ -71,6 +71,16 @@ requirements is produced. If the inputs are lower-constraints.txt, the
71output includes the highest version of each package referenced in the 71output includes the highest version of each package referenced in the
72files. 72files.
73 73
74check-requirements
75------------------
76
77Run the validation checks from the ``requirements-check`` job locally
78using the ``requirements-check`` tox environment.
79
80Run::
81
82 $ tox -e requirements-check -- /path/to/repo/to/test
83
74Proposing changes 84Proposing changes
75================= 85=================
76 86
diff --git a/tox.ini b/tox.ini
index df847ef..e11329b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -95,6 +95,12 @@ basepython = python3.5
95[testenv:py36] 95[testenv:py36]
96basepython = python3.6 96basepython = python3.6
97 97
98[testenv:requirements-check]
99basepython = python3
100deps = -r{toxinidir}/requirements.txt
101commands =
102 {toxinidir}/playbooks/files/project-requirements-change.py --local {posargs}
103
98[testenv:babel] 104[testenv:babel]
99# Use the local upper-constraints.txt file 105# Use the local upper-constraints.txt file
100deps = Babel 106deps = Babel