Is there a way to tell the tox test automation tool to use the PyPI mirrors while installing all packages (explicit testing dependencies in tox.ini and dependencies from setup.py)?
For example, pip install has a very useful --use-mirrors option that adds mirrors to the list of package servers.
pypi-mirror is a small script to generate a partial PyPI mirror. It relies on pip to do the most difficult part of the job (downloading a package and its dependencies).
Install moduleIt can install packages from the PyPi repository. It's the official repository for python modules. Software you install with pip is downloaded from the PyPi repo and installed.
By default, pip installs packages located in the Python Package Index (PyPI), but can also install from other indexes.
Since indexserver is deprecated and would be removed and --use-mirrors is deprecated as well, you can use install_command (in your environment section):
[testenv:my_env]
install_command=pip install --index-url=https://my.index-mirror.com --trusted-host=my.index-mirror.com {opts} {packages}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With