diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 394faca..ed67dbc 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -7,11 +7,18 @@ TOBIKO_PLUGIN_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # so let's enable it always when Tobiko is installed KEYSTONE_ADMIN_ENDPOINT=True +TOX_MIN_VERSION="4.13" +if [ "$REQUIREMENTS_BRANCH" == "stable/2023.2" ]; then + TOX_MIN_VERSION="4.5.1" +elif [[ "$REQUIREMENTS_BRANCH" == "stable/2023.1" ]] || [[ "$REQUIREMENTS_BRANCH" == "stable/zed" ]]; then + TOX_MIN_VERSION="3.28" +fi + function install_tobiko_deps { install_python3 git_clone "${TOBIKO_REPO}" "${TOBIKO_DIR}" "${TOBIKO_VERSION}" install_bindep "${TOBIKO_DIR}/bindep.txt" test - pip_install 'tox>=4.13' + pip_install "tox>=${TOX_MIN_VERSION}" }