From 052f8f2cea81ad5be9f3044d96a6f6028cec52fc Mon Sep 17 00:00:00 2001 From: "Chandan Kumar (raukadah)" Date: Fri, 24 Sep 2021 13:31:56 +0530 Subject: [PATCH] Limit the usage of upper-constraints molecule[1] is not compatible with upper-constraints and it breaks the molecule installation in the tox venv due to version conflicts coming from upper-constraints. In order to fix that, we are limiting the usage of uc only for docs and release notes. [1]. https://github.com/ansible-community/molecule/pull/3244 Related-Bug: #1942704 Signed-off-by: Amol Kahat CoAuthored-by: Chandan Kumar (raukadah) Change-Id: Ia35c83c13bd9e38384327630374b3aacebe9007b --- tox.ini | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 0c316da..00dbd77 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ skipsdist = True [testenv] usedevelop = True -install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages} +install_command = pip install {opts} {packages} passenv = * setenv = VIRTUAL_ENV={envdir} @@ -92,13 +92,16 @@ commands = [testenv:releasenotes] basepython = python3 -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html [testenv:docs] basepython = python3 deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r {toxinidir}/doc/requirements.txt commands= doc8 doc