From 190f682aacb69f10cfda4692a1583324f2034108 Mon Sep 17 00:00:00 2001 From: Adam Harwell Date: Thu, 31 May 2018 11:25:20 -0700 Subject: [PATCH] Fix requirements gate + add local tox profile Add a local tox profile 'requirements' so we can easily run requirements checks locally during development. Change-Id: I4d1718b6ff67a889984d8937241d086f06bef237 --- doc/requirements.txt | 2 +- tox.ini | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 7cceb73f37..a0fdbac4be 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -18,4 +18,4 @@ reno>=2.5.0 # Apache-2.0 # This needs to be installed after above modules pydotplus>=2.0.2 # MIT License pyparsing>=2.1.0 # MIT -networkx<2.0,>=1.10 # BSD +networkx>=1.10 # BSD diff --git a/tox.ini b/tox.ini index 7e11a57461..88f606fd0a 100644 --- a/tox.ini +++ b/tox.ini @@ -184,3 +184,10 @@ whitelist_externals = sh commands = sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/unit stestr run {posargs}' sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/functional stestr run {posargs}' + +[testenv:requirements] +deps = + -egit+https://git.openstack.org/openstack/requirements#egg=openstack-requirements +whitelist_externals = sh +commands = + sh -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'