Turn off the legacy pip resolver for distcloud
The requirements that had conflicts have been updated. The local upper-constraints is no longer being used by tox since two constraints files with different values for the same requirements are not supported. To enable this change, some unnecessary code that required an older version of oslo.messaging is removed. Bugbear is also being disabled due to brokeness that can cause test failures. Change-Id: If007b7e0ad3c04b78b619542162267cc7d502460 Story: 2004515 Task: 41670 Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
This commit is contained in:
parent
67029e0d75
commit
527a48513a
@ -26,12 +26,6 @@ from dcdbsync.common import context
|
|||||||
TRANSPORT = None
|
TRANSPORT = None
|
||||||
NOTIFIER = None
|
NOTIFIER = None
|
||||||
|
|
||||||
_ALIASES = {
|
|
||||||
'dcdbsync.openstack.common.rpc.impl_kombu': 'rabbit',
|
|
||||||
'dcdbsync.openstack.common.rpc.impl_qpid': 'qpid',
|
|
||||||
'dcdbsync.openstack.common.rpc.impl_zmq': 'zmq',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class RequestContextSerializer(oslo_messaging.Serializer):
|
class RequestContextSerializer(oslo_messaging.Serializer):
|
||||||
def __init__(self, base):
|
def __init__(self, base):
|
||||||
@ -76,7 +70,7 @@ def setup(url=None, optional=False):
|
|||||||
exmods = ['dcdbsync.common.exception']
|
exmods = ['dcdbsync.common.exception']
|
||||||
try:
|
try:
|
||||||
TRANSPORT = oslo_messaging.get_transport(
|
TRANSPORT = oslo_messaging.get_transport(
|
||||||
cfg.CONF, url, allowed_remote_exmods=exmods, aliases=_ALIASES)
|
cfg.CONF, url, allowed_remote_exmods=exmods)
|
||||||
except oslo_messaging.InvalidTransportURL as e:
|
except oslo_messaging.InvalidTransportURL as e:
|
||||||
TRANSPORT = None
|
TRANSPORT = None
|
||||||
if not optional or e.url:
|
if not optional or e.url:
|
||||||
|
@ -11,7 +11,7 @@ Paste # MIT
|
|||||||
PasteDeploy>=1.5.0 # MIT
|
PasteDeploy>=1.5.0 # MIT
|
||||||
Routes>=2.3.1 # MIT
|
Routes>=2.3.1 # MIT
|
||||||
debtcollector>=1.2.0 # Apache-2.0
|
debtcollector>=1.2.0 # Apache-2.0
|
||||||
eventlet!=0.18.3,<0.21.0,>=0.18.2 # MIT
|
eventlet
|
||||||
pecan!=1.0.2,!=1.0.3,!=1.0.4,!=1.2,>=1.0.0 # BSD
|
pecan!=1.0.2,!=1.0.3,!=1.0.4,!=1.2,>=1.0.0 # BSD
|
||||||
greenlet>=0.3.2 # MIT
|
greenlet>=0.3.2 # MIT
|
||||||
httplib2>=0.7.5 # MIT
|
httplib2>=0.7.5 # MIT
|
||||||
|
@ -8,7 +8,7 @@ fixtures>=3.0.0 # Apache-2.0/BSD
|
|||||||
mock>=2.0 # BSD
|
mock>=2.0 # BSD
|
||||||
python-subunit>=0.0.18 # Apache-2.0/BSD
|
python-subunit>=0.0.18 # Apache-2.0/BSD
|
||||||
requests-mock>=1.1 # Apache-2.0
|
requests-mock>=1.1 # Apache-2.0
|
||||||
sphinx!=1.6.1,>=1.5.1 # BSD
|
sphinx # BSD
|
||||||
oslosphinx>=4.7.0 # Apache-2.0
|
oslosphinx>=4.7.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
|
@ -18,8 +18,7 @@ cgtsclient_src_dir = ../../config/sysinv/cgts-client/cgts-client
|
|||||||
cgcs_patch_src_dir = ../../update/cgcs-patch/cgcs-patch
|
cgcs_patch_src_dir = ../../update/cgcs-patch/cgcs-patch
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install --use-deprecated legacy-resolver -v -v -v \
|
install_command = pip install -v -v -v \
|
||||||
-c ./upper-constraints.txt \
|
|
||||||
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
||||||
{opts} {packages}
|
{opts} {packages}
|
||||||
setenv =
|
setenv =
|
||||||
@ -41,7 +40,6 @@ whitelist_externals =
|
|||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
install_command = pip install -v -v -v \
|
install_command = pip install -v -v -v \
|
||||||
-c ./upper-constraints.txt \
|
|
||||||
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
||||||
{opts} {packages}
|
{opts} {packages}
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
@ -90,7 +88,6 @@ commands = oslo_debug_helper {posargs}
|
|||||||
basepython = python3
|
basepython = python3
|
||||||
deps = hacking>=1.1.0,<=2.0.0
|
deps = hacking>=1.1.0,<=2.0.0
|
||||||
pycodestyle>=2.0.0
|
pycodestyle>=2.0.0
|
||||||
flake8-bugbear
|
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
@ -172,15 +169,8 @@ show-source = True
|
|||||||
# E402 module level import not at top of file
|
# E402 module level import not at top of file
|
||||||
# E501 line too long
|
# E501 line too long
|
||||||
# E731 do not assign a lambda expression, use a def
|
# E731 do not assign a lambda expression, use a def
|
||||||
# -B- codes are bugbear errors
|
|
||||||
# B005 Using .strip() with multi-character strings is misleading the reader.
|
|
||||||
# B006 Do not use mutable data structures for argument defaults.
|
|
||||||
# B007 Loop control variable not used within the loop body.
|
|
||||||
# B009 Do not call getattr with a constant attribute value,
|
|
||||||
# B306 `BaseException.message` has been deprecated as of Python 2.6 and is removed in Python 3
|
|
||||||
ignore = W503,W504,W605,
|
ignore = W503,W504,W605,
|
||||||
E117,E123,E125,E305,E402,E501,E731,
|
E117,E123,E125,E305,E402,E501,E731
|
||||||
B005,B006,B007,B009,B306
|
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# oslo.messaging locked to pike version
|
|
||||||
# https://bugs.launchpad.net/starlingx/+bug/1865054
|
|
||||||
oslo.messaging==5.30.6 # Apache-2.0
|
|
||||||
Pygments==2.5.2
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
sphinx>=2.0.0,!=2.1.0 # BSD
|
sphinx # BSD
|
||||||
openstackdocstheme>=2.2.1 # Apache-2.0
|
openstackdocstheme # Apache-2.0
|
||||||
|
|
||||||
# Release Notes documentation
|
# Release Notes documentation
|
||||||
reno>=3.1.0 # Apache-2.0
|
reno # Apache-2.0
|
||||||
|
|
||||||
# Api Ref documentation
|
# Api Ref documentation
|
||||||
os-api-ref>=1.4.0 # Apache-2.0
|
os-api-ref>=1.4.0 # Apache-2.0
|
||||||
|
2
tox.ini
2
tox.ini
@ -4,7 +4,7 @@ minversion = 2.3
|
|||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install --use-deprecated legacy-resolver -v -v -v \
|
install_command = pip install -v -v -v \
|
||||||
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
||||||
{opts} {packages}
|
{opts} {packages}
|
||||||
setenv =
|
setenv =
|
||||||
|
Loading…
Reference in New Issue
Block a user