aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tox_install.sh
blob: e61b63a8b067956e352edb6cc11b7f001a98d4b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash

# Client constraint file contains this client version pin that is in conflict
# with installing the client from source. We should remove the version pin in
# the constraints file before applying it for from-source installation.

CONSTRAINTS_FILE="$1"
shift 1

set -e

# NOTE(tonyb): Place this in the tox enviroment's log dir so it will get
# published to logs.openstack.org for easy debugging.
localfile="$VIRTUAL_ENV/log/upper-constraints.txt"

if [[ "$CONSTRAINTS_FILE" != http* ]]; then
    CONSTRAINTS_FILE="file://$CONSTRAINTS_FILE"
fi
# NOTE(tonyb): need to add curl to bindep.txt if the project supports bindep
curl "$CONSTRAINTS_FILE" --insecure --progress-bar --output "$localfile"

pip install -c"$localfile" openstack-requirements

# This is the main purpose of the script: Allow local installation of
# the current repo. It is listed in constraints file and thus any
# install will be constrained and we need to unconstrain it.
edit-constraints "$localfile" -- "$CLIENT_NAME"

pip install -c"$localfile" -U "$@"
exit $?
pan>: - member-vnf-index: '0' vnfd-id-ref: tg__0 VNF model: ../../vnf_descriptors/tg_rfc2544_tpl.yaml #VNF type - member-vnf-index: '1' vnfd-id-ref: tg__1 VNF model: ../../vnf_descriptors/udp_replay_vnf.yaml #VNF type - member-vnf-index: '2' vnfd-id-ref: vnf__0 VNF model: ../../vnf_descriptors/cgnapt_vnf.yaml #VNF type - member-vnf-index: '3' vnfd-id-ref: vnf__1 VNF model: ../../vnf_descriptors/cgnapt_vnf.yaml #VNF type vld: - id: uplink_0 name: "tg__0 to vnf__0 link 0" type: ELAN vnfd-connection-point-ref: - member-vnf-index-ref: '0' vnfd-connection-point-ref: xe0 vnfd-id-ref: tg__0 - member-vnf-index-ref: '2' vnfd-connection-point-ref: xe0 vnfd-id-ref: vnf__0 - id: downlink_0 name: "vnf__0 to tg__1 link 0" type: ELAN vnfd-connection-point-ref: - member-vnf-index-ref: '2' vnfd-connection-point-ref: xe1 vnfd-id-ref: vnf__0 - member-vnf-index-ref: '1' vnfd-connection-point-ref: xe0 vnfd-id-ref: tg__1 - id: uplink_1 name: "tg__0 to vnf__1 link 1" type: ELAN vnfd-connection-point-ref: - member-vnf-index-ref: '0' vnfd-connection-point-ref: xe1 vnfd-id-ref: tg__0 - member-vnf-index-ref: '3' vnfd-connection-point-ref: xe0 vnfd-id-ref: vnf__1 - id: downlink_1 name: "vnf__1 to tg__1 link 1" type: ELAN vnfd-connection-point-ref: - member-vnf-index-ref: '3' vnfd-connection-point-ref: xe1 vnfd-id-ref: vnf__1 - member-vnf-index-ref: '1' vnfd-connection-point-ref: xe1 vnfd-id-ref: tg__1