Add py27 testenv for tox.ini

Since upstream requirements is removing support of py27 but
TripleO jobs still runs on py27 and which is going to break
the deps installation.

In order to fix, we can create a seperate testenv py27
to handle that and it should not depends on upstream
constriants.

Related-Bug: #1861803
Change-Id: I61365503cc1c70644d6520f54646492359fa4e44
This commit is contained in:
Wes Hayutin 2020-02-04 05:57:05 -07:00 committed by Chandan Kumar (raukadah)
parent 4f0c6aac2a
commit da19fdbccd
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ deps =
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:py27]
basepython = python2.7
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
basepython = python3
commands = {posargs}