From 08a26a00f2f26e64ff5012c4b9a44afb9d9220d7 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 6 Jun 2019 12:15:21 +0200 Subject: [PATCH] Fix broken pep8 and requirements jobs This patch solves 2 issues in gate jobs: 1. Failing pep8 job due to wrong bandit version, To fix that we cap bandit in test-requirements.txt for stable/stein release. As in neutron and other repositories, this patch cap bandit version used for stable/stein release to be lower than 1.6.0 2. Requirements job failing on sphinx, To fix that we sphinx requirements in doc/requirements.txt file Change-Id: I31c6c0596831d4445f11984b0b3ceee434a74664 --- doc/requirements.txt | 3 ++- test-requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index d959d4431..b9e132cfe 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -3,4 +3,5 @@ # process, which may cause wedges in the gate later. openstackdocstheme>=1.18.1 # Apache-2.0 reno>=2.5.0 # Apache-2.0 -sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +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,>=1.6.2;python_version>='3.4' # BSD diff --git a/test-requirements.txt b/test-requirements.txt index dabdb0e02..5824501c5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,7 +3,7 @@ # process, which may cause wedges in the gate later. hacking>=1.1.0 # Apache-2.0 -bandit>=1.1.0 # Apache-2.0 +bandit>=1.1.0,<1.6.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD flake8-import-order==0.12 # LGPLv3