Use upper constraints when installing ARA
Currently lint tests are failing due to ARA bringing in extra packages unconstrained. Here we ensure that the upper constraints are applied when installing ARA. Change-Id: I35e3688ae632d5f7747f32dafc41d23883c033c5
This commit is contained in:
parent
ae09ea27e5
commit
2516484ffc
@ -87,9 +87,15 @@ function setup_ara {
|
|||||||
# Install ARA from source if running in ARA gate, otherwise install from PyPi
|
# Install ARA from source if running in ARA gate, otherwise install from PyPi
|
||||||
ARA_SRC_HOME="${TESTING_HOME}/src/git.openstack.org/openstack/ara"
|
ARA_SRC_HOME="${TESTING_HOME}/src/git.openstack.org/openstack/ara"
|
||||||
if [[ -d "${ARA_SRC_HOME}" ]]; then
|
if [[ -d "${ARA_SRC_HOME}" ]]; then
|
||||||
pip install --constraint "${COMMON_TESTS_PATH}/test-ansible-deps.txt" "${ARA_SRC_HOME}"
|
pip install \
|
||||||
|
--constraint "${COMMON_TESTS_PATH}/test-ansible-deps.txt" \
|
||||||
|
--constraint ${UPPER_CONSTRAINTS_FILE:-https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} \
|
||||||
|
"${ARA_SRC_HOME}"
|
||||||
else
|
else
|
||||||
pip install --constraint "${COMMON_TESTS_PATH}/test-ansible-deps.txt" ara
|
pip install \
|
||||||
|
--constraint "${COMMON_TESTS_PATH}/test-ansible-deps.txt" \
|
||||||
|
--constraint ${UPPER_CONSTRAINTS_FILE:-https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} \
|
||||||
|
ara
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Dynamically figure out the location of ARA (ex: py2 vs py3)
|
# Dynamically figure out the location of ARA (ex: py2 vs py3)
|
||||||
|
Loading…
Reference in New Issue
Block a user