bug fix: tox wrongly install client from repo path.

This will cause version conflict:

Obtaining file:///opt/stack/python-cyborgclient
ERROR: Could not satisfy constraints for 'python-cyborgclient': installation from path or url cannot be constrained to a version

or

ERROR: Could not find a version that satisfies the requirement python-cyborgclient 1.3.1.dev1
ERROR: No matching distribution found for python-cyborgclient 1.3.1.dev1

Change-Id: I521f880606fa1aab25cd85875153275c5dd2e125
(cherry picked from commit 2a674e6576)
This commit is contained in:
Xinran Wang
2021-03-19 07:11:10 +00:00
committed by Brin Zhang
parent db8479f5c2
commit d285e08562

View File

@@ -6,7 +6,7 @@ ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
usedevelop = False
whitelist_externals = rm
install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =