Skip to main content

Build Status

tox-virtualenv-no-download

Disable virtualenv (>=14)'s downloading behaviour when running through tox.

Wait, why?

A few goals for test suites are repeatability and speed. In modern versions of virtualenv (>=14), virtualenv will reach out to pypi to download the latest version of pip, setuptools, and wheel even when it has a perfectly good copy of the wheeled packages on disk.

A few reasons why downloading is problematic:

  • Reaching out to the network is slow.
  • pypi goes down quite often
  • You may work in a situation where installation should not come from public pypi.
  • If you don't have a network connection, virtualenv will outright fail.
  • Hurts repeatability as you may suddenly get a new version of setuptools / pip
  • setuptools has been unstable in the past, breaking their latest version and compatibility.

How it works

The downloading behaviour of virtualenv can be disabled either by calling virtualenv --no-download or by setting the environment variable VIRTUALENV_NO_DOWNLOAD. This tox plugin sets that environment variable during the virtualenv creation.

Usage

$ pip install tox-virtualenv-no-download
# just use tox as you usually would
$ tox ...

Release files for tox-virtualenv-no-download 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tox-virtualenv-no-download 1.1.0
File Size Uploaded
tox_virtualenv_no_download-1.1.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tox-virtualenv-no-download 1.1.0
File Interpreter ABI Platform
tox_virtualenv_no_download-1.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.1 kB

Release files / tox_virtualenv_no_download-1.1.0.tar.gz

Download URL tox_virtualenv_no_download-1.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2667051c6facd8b11f1f6cbf0ceb4f79ca2ed60ee1061da32156c8cacfb172fc
BLAKE2b-256 checksum
How to use checksums
8cfdd629f9042a15be790f5b8648601cf95f377c244410f546527159fd4fb3d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

Release files / tox_virtualenv_no_download-1.1.0-py2.py3-none-any.whl

Download URL tox_virtualenv_no_download-1.1.0-py2.py3-none-any.whl
Size 3.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
95056a34eda8447f7002c8b80f8427bdd055c379ded4e81569a8b7c3bd3cb616
BLAKE2b-256 checksum
How to use checksums
69db5e507458fd04b42ec9a694f3a97c001d938092b8d633b2a91dbfc606d5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page