Fix github-maven-merge scm config
[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
12 set -eux -o pipefail
13
14 REQUIREMENTS_FILE=$(mktemp /tmp/requirements-XXXX.txt)
15
16 cat << EOF > "$REQUIREMENTS_FILE"
17 lftools~=0.17.1
18 python-heatclient~=1.16.1
19 python-openstackclient~=3.16.0
20 EOF
21
22 # Use `python -m pip` to ensure we are using the latest version of pip
23 python -m pip install --user --quiet --upgrade pip
24 python -m pip install --user --quiet --upgrade setuptools
25 python -m pip install --user --quiet --upgrade -r "$REQUIREMENTS_FILE"
26 pip freeze