]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pr-syntax-check: get latest version of pip
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Feb 2019 14:13:29 +0000 (15:13 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Feb 2019 14:13:29 +0000 (15:13 +0100)
ensure the latest version of pip is installed for this job to avoid the
following error:

```
ValueError: ('Expected version spec in', 'ansible~=2.7,<2.8', 'at', '~=2.7,<2.8')
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 90886429f4d9c30855985990a0e06db38cf84af6..ce3f0adcc05e5ebb04956fe0b71930ca6acd9e37 100644 (file)
@@ -8,6 +8,7 @@ pkgs=( "ansible-lint" )
 # force virtualenv to be created earlier for this occurence, so we are not stuck because of ansible-lint dependencie,
 # which would enforce latest ansible version to be installed.
 virtualenv $TEMPVENV
+"$VENV"/pip install --upgrade pip
 "$VENV"/pip install -r <(grep ansible "$WORKSPACE"/ceph-ansible/tests/requirements.txt)
 install_python_packages "pkgs[@]"