python - How to tell tox to use PyPI mirrors for installing packages? -


is there way tell tox test automation tool use pypi mirrors while installing packages (explicit testing dependencies in tox.ini , dependencies setup.py)?

for example, pip install has useful --use-mirrors option adds mirrors list of package servers.

pip can configured using environment variables, tox lets set in configuration:

setenv =     pip_use_mirrors=... 

alternatively, can specify series of index servers use:

indexserver =      default = http://mypypi.org     foobar = http://otherpypi.org 

default default index server used, other names can used fetch dependencies in deps list specific servers:

deps =      :foobar:ham-spam-pkg 

Comments

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -