Updated from global requirements

Change-Id: I2e2bd3a38458e1307bcc0410da74dc76c0a5987a
This commit is contained in:
Monty Taylor
2013-08-05 18:03:37 -03:00
committed by Mark J. Washenberger
parent eb47b55dbd
commit 1f2eef510f
6 changed files with 17 additions and 20 deletions

View File

@@ -212,7 +212,7 @@ def get_file_size(file_obj):
size = file_obj.tell() size = file_obj.tell()
file_obj.seek(curr) file_obj.seek(curr)
return size return size
except IOError, e: except IOError as e:
if e.errno == errno.ESPIPE: if e.errno == errno.ESPIPE:
# Illegal seek. This means the file object # Illegal seek. This means the file object
# is a pipe (e.g the user is trying # is a pipe (e.g the user is trying

View File

@@ -112,7 +112,7 @@ class Controller(object):
for (key, value) in kwargs.items(): for (key, value) in kwargs.items():
try: try:
setattr(image, key, value) setattr(image, key, value)
except warlock.InvalidOperation, e: except warlock.InvalidOperation as e:
raise TypeError(utils.exception_to_str(e)) raise TypeError(utils.exception_to_str(e))
resp, body = self.http_client.json_request('POST', url, body=image) resp, body = self.http_client.json_request('POST', url, body=image)

View File

@@ -1,8 +1,7 @@
d2to1>=0.2.10,<0.3 pbr>=0.5.21,<1.0
pbr>=0.5,<0.6
argparse argparse
prettytable>=0.6,<0.8 PrettyTable>=0.6,<0.8
python-keystoneclient>=0.2.1 python-keystoneclient>=0.3.0
pyOpenSSL pyOpenSSL
warlock>=0.7.0,<2 warlock>=1.0.1,<2

View File

@@ -14,8 +14,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools import setuptools
setuptools.setup( setuptools.setup(
setup_requires=['d2to1>=0.2.10,<0.3', 'pbr>=0.5,<0.6'], setup_requires=['pbr>=0.5.21,<1.0'],
d2to1=True) pbr=True)

View File

@@ -1,14 +1,9 @@
# Install bounded pep8/pyflakes first, then let flake8 install hacking>=0.5.6,<0.7
pep8==1.4.5
pyflakes==0.7.2
flake8==2.0
hacking>=0.5.3,<0.6
coverage coverage>=3.6
discover discover
mox mox>=0.5.3
mock>=0.8.0 mock>=0.8.0
setuptools-git>=0.4
sphinx>=1.1.2 sphinx>=1.1.2
testrepository>=0.0.13 testrepository>=0.0.17
testtools>=0.9.22 testtools>=0.9.32

View File

@@ -26,10 +26,12 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
downloadcache = ~/cache/pip downloadcache = ~/cache/pip
[flake8] [flake8]
# H233 Python 3.x incompatible use of print operator
# H302 import only modules # H302 import only modules
# H303 no wildcard import # H303 no wildcard import
# H306 imports not in alphabetical orde # H306 imports not in alphabetical orde
# H404 multi line docstring should start with a summary # H404 multi line docstring should start with a summary
ignore = F403,F841,F812,F821,H302,H303,H306,H404 # H501 Do not use locals() for string formatting
ignore = F403,F841,F812,F821,H233,H302,H303,H306,H404,H501
show-source = True show-source = True
exclude = .venv,.tox,dist,doc,*egg,build exclude = .venv,.tox,dist,doc,*egg,build