Add missing script name markers
[releng/global-jjb.git] / shell / python-tools-install.sh
1 #!/bin/bash -l
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2018 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 echo "---> python-tools-install.sh"
12
13 set -eux -o pipefail
14
15 REQUIREMENTS_FILE=$(mktemp /tmp/requirements-XXXX.txt)
16
17 # Note: To test lftools master branch change the lftools configuration below in
18 #       the requirements file from "lftools[openstack]~=#.##.#" to
19 #       git+https://github.com/lfit/releng-lftools.git#egg=lftools[openstack]
20
21 cat << EOF > "$REQUIREMENTS_FILE"
22 lftools[openstack]~=0.23.1
23 python-heatclient~=1.16.1
24 python-openstackclient~=3.16.0
25 dogpile.cache~=0.6.8  # Version 0.7.[01] seems to break openstackclient
26 niet~=1.4.2 # Extract values from yaml
27 EOF
28
29 echo "Requirements file"
30 echo "-----------------"
31 cat "$REQUIREMENTS_FILE"
32
33 # Use `python -m pip` to ensure we are using the latest version of pip
34 python -m pip install --user --quiet --upgrade pip
35 python -m pip install --user --quiet --upgrade setuptools
36 python -m pip install --user --quiet --upgrade -r "$REQUIREMENTS_FILE"
37 pip freeze