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
Post a Comment