Remove pylxd before 2.2.7

Any pylxd version before 2.2.7 fails to build now that
urllib3 1.25 is out. This removes them, and therefore
allows us to build requirements for older openstack
branches than Rocky.

See also https://review.opendev.org/#/c/655498/

Change-Id: I632f648f59020a2010ffe05f59ca634461752997
This commit is contained in:
Jean-Philippe Evrard 2019-04-24 16:23:15 +02:00
parent 086ace64e9
commit b901ac0bed
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ fi
# anymore
sed -i '/python-qpid-proton===0.14.0/d' /upper-constraints.txt
# Remove any pylxd before 2.2.7 as the old versions cannot be built in CI.
lxd_constraint=$(grep pylxd /upper-constraints.txt)
# This removes (##) everything (*) from the lxd_constraint until the last =,
# and removes all '.' to look like a number.
if (( $(echo ${lxd_constraint##*=} | sed 's#\.##g') < 227 )); then
sed -i '/pylxd/d' /upper-constraints.txt
fi
if [[ "${PYTHON3}" == "no" ]]; then
ignore_wheels=py2
else