Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I72a882f2c33ea8c5b79625b3bb3e951204e0bba7
This commit is contained in:
ZhijunWei 2019-01-05 00:42:55 +08:00
parent fe82094522
commit fb33d01882
4 changed files with 7 additions and 4 deletions

View File

@ -12,11 +12,12 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__all__ = ['read_data']
import json
import os
__all__ = ['read_data']
DATA_DIR = os.path.dirname(__file__)

View File

@ -12,11 +12,12 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__all__ = ['warn', 'AliasUsageWarning']
import textwrap
import warnings
__all__ = ['warn', 'AliasUsageWarning']
def warn(warning, **kwargs):
"""Emit a warning that has builtin message text."""

View File

@ -12,13 +12,14 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__all__ = ['ServiceTypes']
import copy
import os_service_types.data
from os_service_types import exc
__all__ = ['ServiceTypes']
BUILTIN_DATA = os_service_types.data.read_data('service-types.json')
SERVICE_TYPES_URL = "https://service-types.openstack.org/service-types.json"

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking<0.13,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD