From c0972b00b0863f18ea4efda056b16a77079c4dc1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 11 Apr 2019 08:56:08 +0200 Subject: [PATCH] Fix propose-project-config-update After the recent change, the job now fails since ruamel.yaml is not installed. Change the job to use tox to install dependency. This creates a new tox environment that is then called from the proposal script. Failure log: http://logs.openstack.org/periodic/git.openstack.org/openstack-infra/project-config/master/propose-project-config-update/bf68ac6/ Change-Id: I02ce33f10d388531806380f464dacc5617c74f1f --- tools/propose_projects_yaml_update.sh | 2 +- tox.ini | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/propose_projects_yaml_update.sh b/tools/propose_projects_yaml_update.sh index b0ea381d95..a369e77b9e 100755 --- a/tools/propose_projects_yaml_update.sh +++ b/tools/propose_projects_yaml_update.sh @@ -52,7 +52,7 @@ else fi git review -s -python tools/normalize_projects_yaml.py +tox -e normalize-projects-yaml if ! git diff --stat --exit-code HEAD ; then # Commit and review diff --git a/tox.ini b/tox.ini index 4e5cfb213d..ecedcd27c4 100644 --- a/tox.ini +++ b/tox.ini @@ -133,3 +133,9 @@ deps = commands = python tools/add-projects-to-main.py git diff-files --quiet + +[testenv:normalize-projects-yaml] +deps = + ruamel.yaml +commands = + {toxinidir}/tools/normalize_projects_yaml.py