#!/bin/sh
export http_proxy=http://127.0.9.1:9
export https_proxy=https://127.0.9.1:9

# 2016-02-16 barry@debian.org: This shouldn't strictly be necessary because
# virtualenv should be robust when PyPI can't be contacted.  It seems though
# that something in our stack of packages (most likely in some debundled
# piece) causes the fallback mechanism to not be invoked.  My current guess is
# that our python3-urllib3 hits a traceback and that percolates up.  In any
# event for now, by setting this environment variable, we can really prevent
# attempts at downloading.
export VIRTUALENV_DOWNLOAD=no

export toxenv=`python3 -c "import sys; print('py{}{}'.format(*sys.version_info[:2]))"`
tox -e $toxenv --sitepackages tests
