Skip to main content

Build Status

Overview

This is a tox plugin that preinstalls a specific version of pip in each tox environment.

pip install tox-pip-version

This works around the default behavior of tox/virtualenv that always installs the latest version pip. It is an improvment over the VIRTUALENV_NO_DOWNLOAD=1 option that does not install the latest version, but could result in usage of an outdated version of pip.

Recommendation: Do not pin the pip version long term. You get more stable repeatable builds, but at the cost of using an outdated (possibly vulnerable) package. This should be used as a temporary fix for breakages in upstream pip, or in conjunction with a regular process to update the version pin.

Note: This relies on an unstable tox plugin interface. You may experience breakage with new tox versions. If you do, please feel free to report the issue on Github.

Usage

Install the package and include pip_version in your tox.ini

[testenv]
pip_version = 19.0.1

Or, set the TOX_PIP_VERSION environment variable,

export TOX_PIP_VERSION=18.1
tox

The plugin will install that specific pip into the tox-created virtualenv, just after tox creates the virtualenv, but before dependencies are installed.

The pip_version within tox.ini, if present, is always used over the environment variable.

If neither pip_version or TOX_PIP_VERSION is present, the plugin does nothing.

Tests

Use make test to run the tests, which includes linting and functional tests.

Each of the tests/* directories is a "feature" that needs testing. Each feature sub-directory contains a tox.ini file that sets pip version in a particular way, and then uses a tox command to check the correct pip version was installed.

Release files for tox-pip-version 0.0.4

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-pip-version 0.0.4
File Size Uploaded
tox-pip-version-0.0.4.tar.gz 5.4 kB Details

Release files / tox-pip-version-0.0.4.tar.gz

Download URL tox-pip-version-0.0.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b10c405082bc229b20a5fc083c9e7aeecf32c2727f27ad39bcc529708f12a743
BLAKE2b-256 checksum
How to use checksums
6a58d9ce4856f5362b0b089a0e2bf575443a0312e974ec85626821c8c1412bb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.2

Release history Release notifications | RSS feed

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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