Limit neutron-lib versions depending on the Python version

Last Python 2 working version was 1.30.0 (1.31.0 has an API error).
New 2.0.0 version dropped Python 2 support.

As seen in the related bug, some CI jobs still running in Python 2
are trying to install 2.0.0, returning an error because this
neutron-lib version is not supported.

Change-Id: I5ac0a875ebeda9fdccc77eab76780ff9a4be6d3f
Related-Bug: #1860033
This commit is contained in:
Rodolfo Alonso Hernandez 2020-01-21 15:34:06 +00:00
parent d22ceab64a
commit 1f38f12415
2 changed files with 8 additions and 2 deletions

View File

@ -143,7 +143,9 @@ networking-sfc # Apache-2.0
# NOTE(fdegir): NetworkX 2.3 dropped support for Python 2
networkx<2.3;python_version<'3.0' # BSD
networkx;python_version>='3.4' # BSD
neutron-lib # Apache-2.0
# NOTE(ralonsoh): neutron-lib 2.0.0 dropped support for Python 2
neutron-lib<=1.30.0;python_version<'3.6' # Apache-2.0
neutron-lib;python_version>='3.6' # Apache-2.0
neutron-dynamic-routing # Apache-2.0
neutron-fwaas # Apache-2.0
neutron-lbaas # Apache-2.0

View File

@ -76,7 +76,11 @@ grpcio===1.26.0
skydive-client===0.7.0
pysendfile===2.0.1
fixtures===3.0.0
neutron-lib===2.0.0
neutron-lib===1.30.0;python_version=='2.7'
neutron-lib===1.30.0;python_version=='3.4'
neutron-lib===1.30.0;python_version=='3.5'
neutron-lib===2.0.0;python_version=='3.6'
neutron-lib===2.0.0;python_version=='3.7'
XStatic-FileSaver===1.3.2.0
storage-interfaces===1.0.3
persist-queue===0.5.0