File: check-ancient-pip.sh

package info (click to toggle)
python-hypothesis 3.6.1-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,788 kB
  • sloc: python: 15,048; sh: 226; makefile: 160
file content (17 lines) | stat: -rwxr-xr-x 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

set -e
set -x

PYTHON=$1

BROKEN_VIRTUALENV=$($PYTHON -c'import tempfile; print(tempfile.mkdtemp())')

trap "rm -rf $BROKEN_VIRTUALENV" EXIT

$PYTHON -m pip install virtualenv
$PYTHON -m virtualenv $BROKEN_VIRTUALENV
$BROKEN_VIRTUALENV/bin/pip install pytest
$BROKEN_VIRTUALENV/bin/python -m pip install --upgrade pip==1.0.0
$BROKEN_VIRTUALENV/bin/pip install .
$BROKEN_VIRTUALENV/bin/python -m pytest tests/cover/test_testdecorators.py