Bump hacking to new required version

Change-Id: Ice127b5e673cee3159b780e3da06cec496c845e3
This commit is contained in:
Graham Hayes 2017-03-07 16:09:10 +00:00
parent 25758b58e4
commit b56a7b14f3
10 changed files with 31 additions and 11 deletions

View File

@ -6,7 +6,7 @@
"updated_at": null, "updated_at": null,
"records": [ "records": [
"10.1.0.2", "10.1.0.2",
"10.1.0.3", "10.1.0.3"
], ],
"ttl": null, "ttl": null,
"id": "f7b10e9b-0cae-4a91-b162-562bc6096648", "id": "f7b10e9b-0cae-4a91-b162-562bc6096648",

View File

@ -1,7 +1,7 @@
{ {
"status": "PENDING", "status": "PENDING",
"ptrdname": "smtp.example.com.", "ptrdname": "smtp.example.com.",
"description": "This is a floating ip for 127.0.0.1" "description": "This is a floating ip for 127.0.0.1",
"links": { "links": {
"self": "http://127.0.0.1:9001/v2/reverse/floatingips/RegionOne:c5742ac0-d0f3-4304-a039-9423f727eb96" "self": "http://127.0.0.1:9001/v2/reverse/floatingips/RegionOne:c5742ac0-d0f3-4304-a039-9423f727eb96"
}, },

View File

@ -9,7 +9,6 @@
"service_name": "api", "service_name": "api",
"stats": null, "stats": null,
"capabilities": null, "capabilities": null,
"heartbeated_at": "2016-07-20 12:14:41",
"created_at": "2016-05-20 06:15:42", "created_at": "2016-05-20 06:15:42",
"heartbeated_at": "2016-07-20 12:14:41", "heartbeated_at": "2016-07-20 12:14:41",
"id": "af91edb5-ede8-453f-af13-feabdd088f9c" "id": "af91edb5-ede8-453f-af13-feabdd088f9c"

View File

@ -6,7 +6,7 @@
"zone": "http://10.0.4.46:9001/v2/zones/b4542f5a-f1ea-4ec1-b850-52db9dc3f465" "zone": "http://10.0.4.46:9001/v2/zones/b4542f5a-f1ea-4ec1-b850-52db9dc3f465"
}, },
"created_at": "2016-06-22 06:13:55", "created_at": "2016-06-22 06:13:55",
"updated_at": null", "updated_at": "null",
"key": "FUGXMZ5N", "key": "FUGXMZ5N",
"project_id": "2e43de7ce3504a8fb90a45382532c37e", "project_id": "2e43de7ce3504a8fb90a45382532c37e",
"id": "fe8c30f5-42f6-4af1-8cbf-e31a810d8c33", "id": "fe8c30f5-42f6-4af1-8cbf-e31a810d8c33",

View File

@ -1,4 +1,4 @@
{ {
"description": "This is scoped to the new project", "description": "This is scoped to the new project",
"target_project_id": "987654", "target_project_id": "987654"
} }

View File

@ -19,10 +19,6 @@ import os
# the /etc/hosts file, causing problems for for installs. # the /etc/hosts file, causing problems for for installs.
os.environ['EVENTLET_NO_GREENDNS'] = 'yes' os.environ['EVENTLET_NO_GREENDNS'] = 'yes'
import eventlet
eventlet.monkey_patch()
import socket import socket
from oslo_config import cfg from oslo_config import cfg

View File

@ -0,0 +1,18 @@
# Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# Author: Kiall Mac Innes <kiall@hp.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import eventlet
eventlet.monkey_patch(os=False)

View File

@ -37,6 +37,10 @@ from designate.tests import fixtures
from designate.tests import resources from designate.tests import resources
from designate.manage import database as manage_database from designate.manage import database as manage_database
import eventlet
eventlet.monkey_patch(os=False)
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
# Hacking already pins down pep8, pyflakes and flake8 # Hacking already pins down pep8, pyflakes and flake8
hacking<0.10,>=0.9.2 hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
coverage>=4.0 # Apache-2.0 coverage>=4.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD fixtures>=3.0.0 # Apache-2.0/BSD
mock>=2.0 # BSD mock>=2.0 # BSD

View File

@ -120,16 +120,19 @@ commands = {posargs}
[flake8] [flake8]
# ignored flake8 codes: # ignored flake8 codes:
# H105 don't use author tags. We use version control instead
# H302 import only modules # H302 import only modules
# H306 imports not in alphabetical order # H306 imports not in alphabetical order
# H328 old style class declaration, use new style (inherit from `object`)
# H402 one line docstring needs punctuation # H402 one line docstring needs punctuation
# H404 multi line docstring should start with a summary # H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line # H405 multi line docstring summary not separated with an empty line
# H501 Do not use locals() or self.__dict__ for string formatting.
# H904 Wrap long lines in parentheses instead of a backslash # H904 Wrap long lines in parentheses instead of a backslash
# E126 continuation line over-indented for hanging indent # E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent # E128 continuation line under-indented for visual indent
ignore = H302,H306,H402,H404,H405,H904,E126,E128 ignore = H105,H302,H306,H238,H402,H404,H405,H501,H904,E126,E128
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject
[hacking] [hacking]