File: neutronclient-stable.sh

package info (click to toggle)
python-cliff 1.15.0-4~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 448 kB
  • sloc: python: 2,100; makefile: 182; sh: 29
file content (26 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download | duplicates (3)
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
#!/bin/sh -x

set -e

envdir=$1

# Manually download the source from PyPI and build it with the --editable flag.
# This gives us access to run the tests.
pip install --pre --no-deps --no-install --no-clean --no-use-wheel python-neutronclient

# This is where the source will end up after pip is done downloading and building it
srcdir=$envdir/build/python-neutronclient/
cd $srcdir

# Install the source safely
pip install --no-clean -ve .

# Install the test requirements
pip install --no-clean -r $srcdir/test-requirements.txt

# Force a known hash seed value to avoid sorting errors from tox
# giving us a random one.
export PYTHONHASHSEED=0

# Run testr
python setup.py testr