[lxc-devel] [pylxd/master] Bump version to 2.2.9 for dev and fix some pep8 issues

ajkavanagh on Github lxc-bot at linuxcontainers.org
Thu Nov 8 15:50:28 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 488 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181108/e229704d/attachment.bin>
-------------- next part --------------
From 476b743d1c8d1ca7c1b062d9972eee28cb2058a8 Mon Sep 17 00:00:00 2001
From: Alex Kavanagh <alex.kavanagh at canonical.com>
Date: Thu, 8 Nov 2018 15:46:37 +0000
Subject: [PATCH] Bump version to 2.2.9 for dev and fix some pep8 issues

PEP8 keeps adding new default warnings, so we have to either fix
the code of config them out.  In this case, a bit of both.

Signed-off-by: Alex Kavanagh <alex.kavanagh at canonical.com>
---
 pylxd/tests/models/test_container.py | 12 ++++++------
 setup.cfg                            |  2 +-
 tox.ini                              |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/pylxd/tests/models/test_container.py b/pylxd/tests/models/test_container.py
index b689387..7926730 100644
--- a/pylxd/tests/models/test_container.py
+++ b/pylxd/tests/models/test_container.py
@@ -469,7 +469,7 @@ def test_put_delete(self):
         self.add_rule({
             'method': 'DELETE',
             'url': (r'^http://pylxd.test/1.0/containers/an-container/files'
-                    '\?path=%2Fsome%2Ffile$')
+                    r'\?path=%2Fsome%2Ffile$')
         })
         self.container.files.delete('/some/file')
 
@@ -481,7 +481,7 @@ def responder(request, context):
             'text': responder,
             'method': 'DELETE',
             'url': (r'^http://pylxd.test/1.0/containers/an-container/files'
-                    '\?path=%2Fsome%2Ffile%2Fnot%2Ffound$')
+                    r'\?path=%2Fsome%2Ffile%2Fnot%2Ffound$')
         })
         with self.assertRaises(exceptions.LXDAPIException):
             self.container.files.delete('/some/file/not/found')
@@ -499,7 +499,7 @@ def capture(request, context):
             'text': capture,
             'method': 'POST',
             'url': (r'^http://pylxd.test/1.0/containers/an-container/files'
-                    '\?path=%2Ftmp%2Fputted$'),
+                    r'\?path=%2Ftmp%2Fputted$'),
         })
 
         data = 'The quick brown fox'
@@ -550,7 +550,7 @@ def capture(request, context):
 
         with tempdir() as _dir:
             base = (r'^http://pylxd.test/1.0/containers/'
-                    'an-container/files\?path=')
+                    r'an-container/files\?path=')
             rules = [
                 {
                     'text': capture,
@@ -602,7 +602,7 @@ def not_found(request, context):
             'text': not_found,
             'method': 'GET',
             'url': (r'^http://pylxd.test/1.0/containers/an-container/files'
-                    '\?path=%2Ftmp%2Fgetted$'),
+                    r'\?path=%2Ftmp%2Fgetted$'),
         }
         self.add_rule(rule)
 
@@ -618,7 +618,7 @@ def not_found(request, context):
             'text': not_found,
             'method': 'GET',
             'url': (r'^http://pylxd.test/1.0/containers/an-container/files'
-                    '\?path=%2Ftmp%2Fgetted$'),
+                    r'\?path=%2Ftmp%2Fgetted$'),
         }
         self.add_rule(rule)
 
diff --git a/setup.cfg b/setup.cfg
index b6ea62c..a9ff093 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,7 +1,7 @@
 [metadata]
 name = pylxd
 summary = python library for lxd
-version = 2.2.8
+version = 2.2.9
 description-file =
     README.rst
 author = Paul Hummer and others (see CONTRIBUTORS.rst)
diff --git a/tox.ini b/tox.ini
index f4ac350..ae857c2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,7 @@ deps = -r{toxinidir}/requirements.txt
 commands = nosetests --with-coverage --cover-package=pylxd pylxd
 
 [testenv:pep8]
-commands = flake8 --ignore=E123,E125
+commands = flake8 --ignore=E123,E125,W504
 
 [testenv:integration]
 commands = nosetests integration
@@ -22,6 +22,6 @@ commands = nosetests integration
 # E123, E125 skipped as they are invalid PEP-8.
 
 show-source = True
-ignore = E123,E125
+ignore = E123,E125,W504
 builtins = _
 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build


More information about the lxc-devel mailing list