From ed26c606c1c003eb1d158db04701713e8739c2b8 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 11 Dec 2019 13:21:42 -0500 Subject: [PATCH] Add a tox requirements target In some other repos you can run 'tox -e requirements' and run the requirements checks, which is useful when adding or changing requirements. Add it to tox.ini and fix a python2 warning it noticed as well. Change-Id: I8caa7f755d1276ffe581583a1ea61bb5f0473924 --- doc/requirements.txt | 1 - tox.ini | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 33b2d2bdc4a..7b19b370599 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,7 +1,6 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD openstackdocstheme>=1.30.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index da5820d49c9..8270a90bfc3 100644 --- a/tox.ini +++ b/tox.ini @@ -209,3 +209,10 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt + +[testenv:requirements] +deps = + -egit+https://opendev.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'