From 5618c0738f821e0712467d49f3b0195d3eb5d0ed Mon Sep 17 00:00:00 2001 From: Debayan Ray Date: Thu, 2 Mar 2017 23:39:51 -0500 Subject: [PATCH] [Fix gate] Update pbr requirement Explicit version dependency of pbr is added in requirements.txt. Also, since pbr already landed and the old version of hacking seems not work very well with pbr>=2, we should update it to match global requirement. Minor flake8 issue resolved in ``proliantutils/hpssa/objects.py``. Change-Id: I5c019ce41606b73fe12d56b871f76ef17224d4fc Partial-Bug: #1668848 --- proliantutils/hpssa/objects.py | 2 +- requirements.txt | 1 + setup.py | 2 +- test-requirements.txt | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/proliantutils/hpssa/objects.py b/proliantutils/hpssa/objects.py index b64b8508..51384c84 100644 --- a/proliantutils/hpssa/objects.py +++ b/proliantutils/hpssa/objects.py @@ -568,7 +568,7 @@ class LogicalDrive(object): 'volume_name': self.volume_name} -class PhysicalDrive: +class PhysicalDrive(object): """Class for PhysicalDrive object.""" def __init__(self, id, properties, parent): diff --git a/requirements.txt b/requirements.txt index 365eb6f9..ad4221a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +pbr>=2.0.0 # Apache-2.0 six>=1.9.0 oslo.concurrency>=1.8.0 oslo.utils>=1.4.0 diff --git a/setup.py b/setup.py index b96e3990..78985557 100644 --- a/setup.py +++ b/setup.py @@ -3,5 +3,5 @@ import setuptools setuptools.setup( - setup_requires=['pbr'], + setup_requires=['pbr>=2.0.0'], pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt index 8e77bdfd..7c748fe6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,5 @@ mock -hacking>=0.9.2,<0.10 +hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 coverage>=3.6 # Apache-2.0 testrepository>=0.0.18 testtools>=1.4.0 # MIT