From 841750fdea22e3138735baf421bd929fd808baa4 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 26 Mar 2014 12:31:22 -0700 Subject: [PATCH] Depend on hacking for its dependencies. flake8 does not pin its pep8 and pyflakes dependencies which makes it possible for new sets of rules to suddenly apply whenever either of those projects pushes a new release. Fix this by depending on hacking instead of flake8, pep8, and pyflakes directly. This will keep nodepool in sync with the rest of openstack even if it doesn't use the hacking rules (H*). Change-Id: Ice9198e9439ebcac15e76832835e78f72344425c --- nodepool/nodedb.py | 2 +- test-requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nodepool/nodedb.py b/nodepool/nodedb.py index 021ce3d3d..791f78f49 100644 --- a/nodepool/nodedb.py +++ b/nodepool/nodedb.py @@ -255,7 +255,7 @@ class NodeDatabaseSession(object): snapshot_image_table.c.provider_name == provider_name, snapshot_image_table.c.image_name == image_name, snapshot_image_table.c.state == READY).order_by( - snapshot_image_table.c.version.desc()).all() + snapshot_image_table.c.version.desc()).all() return images def getCurrentSnapshotImage(self, provider_name, image_name): diff --git a/test-requirements.txt b/test-requirements.txt index 62ec67012..d5dcfcb89 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,5 @@ -flake8==2.0 +# Nodepool uses hacking for its dependencies +hacking>=0.8,<0.9 coverage sphinx>=1.1.2,<1.2 docutils==0.9.1