update requirements to support older releases

while python 2.7 support is nolonger required,
as this is a tempest plugin its possible desireable
to be able to run it on older releases.

This change caps the version of sshtunnel used on
python 2.7 to avoid a depency on cryptography 2.6
which is not avaliable on rhel 7 for downstream testing.

In the future we might want to consider if we drop
support for python 2.7 on the master branch and have a
seperate branch for 2.7 suport.

this change also removes py35 form the default tox envs
and update the tox config to skip missing interpreters and
ignore base python version conflict to allow pyXX envs
to work correctly.

Change-Id: I2726619df5752cd8478918346280244a8828c56c
This commit is contained in:
Sean Mooney 2020-02-20 21:53:38 +00:00
parent cad09c2223
commit 9395f5d9ea
3 changed files with 8 additions and 3 deletions

View File

@ -63,7 +63,6 @@
name: x/whitebox-tempest-plugin
templates:
- openstack-python-jobs
- openstack-python35-jobs
- openstack-python36-jobs
- openstack-python37-jobs
check:

View File

@ -4,5 +4,6 @@
tempest
#crudini>=0.9.3
oslo.log
sshtunnel
sshtunnel<=0.1.3;python_version=='2.7' # MIT
sshtunnel;python_version>='3.6' # MIT
pymysql

View File

@ -1,7 +1,12 @@
[tox]
minversion = 2.3.1
envlist = pep8,py{27,35,36,37}
envlist = pep8,py{27,36,37}
skipsdist = True
skip_missing_interpreters = True
# Automatic envs (pyXX) will only use the python version appropriate to that
# env and ignore basepython inherited from [testenv] if we set
# ignore_basepython_conflict.
ignore_basepython_conflict = True
[testenv]
setenv =