Skip to main content

Select SETUPTOOLS version to use with tox

Project description

Build Status Coverage Bugs Code Smells Maintainability Rating Reliability Rating Reliability Rating Vulnerabilities

Overview

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

pip install tox-setuptools-version

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

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.

This repository is based on a fork from the plugin tox-pip-version, you should probably go to see his job too.

Usage

Install the package and include setuptools_version in your tox.ini

[testenv]
setuptools_version = setuptools_version<58

Or, set the TOX_SETUPTOOLS_VERSION environment variable,

export TOX_SETUPTOOLS_VERSION=57.2.4
tox

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

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

If neither setuptools_version or TOX_SETUPTOLLS_VERSION is present, the plugin does nothing.

Version Sets

Version sets/ranges are supported, enabling installation of a version of pip matching a set of specifiers. There are two basic formats: a plain version number, or the package name with optional PEP440-compatible version specifiers.

tox.ini effective pip command
setuptools_version = 58.0 pip install -U setuptools==19.0
setuptools_version = setuptools==58.0 pip install -U setuptools==58.0
setuptools_version = setuptools>=58.0 pip install -U setuptools>=58.0
setuptools_version = setuptools!=58.0,>57 pip install -U setuptools!=58.0,>57
setuptools_version = setuptools pip install -U setuptools
setuptools_version = setuptools@git+https://github.com/pypa/setuptools@0168ac6 setuptools@git+https://github.com/pypa/setuptools@0168ac6

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tox-setuptools-version-0.0.0.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

tox_setuptools_version-0.0.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file tox-setuptools-version-0.0.0.3.tar.gz.

File metadata

  • Download URL: tox-setuptools-version-0.0.0.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tox-setuptools-version-0.0.0.3.tar.gz
Algorithm Hash digest
SHA256 985e3c26978823036d55090f630104b6fc0efa1b22cdac4bc25e5642100e23f4
MD5 0c6df8b2a5a167f0772d59a93901e860
BLAKE2b-256 fda6fd9b96224019b8904ca19fd4546f9d9fe8dc9d57182bcea3e410fb9cd939

See more details on using hashes here.

File details

Details for the file tox_setuptools_version-0.0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tox_setuptools_version-0.0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tox_setuptools_version-0.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 38067876bb81bb7b4ea3c0883dbaf93c888d71c18562782c9662384b0d7983dd
MD5 552c2117f8d57271130a19c5054f3303
BLAKE2b-256 3d5574556c94bf4c90681027187d2fa3871716bd6f7ae95465f5a5609075835b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page