Skip to main content

Implement a --pypi-filter option for tox

Project description

About

Tox includes a --force-dep option that can be used to provide version restrictions for dependencies - however, by design this only works with dependencies explicitly listed in the deps section of the tox.ini file (see this issue for a discussion of this).

The tox-pypi-filter plugin works around this by using a proxy PyPI server that filters packages in a way that is independent of tox’s implementation.

Installing

To install:

pip install tox-pypi-filter

Using

This plugin provides a --pypi-filter command-line option that takes PEP440 version specifiers separated by semicolons, e.g.:

tox --pypi-filter "numpy==1.14.*;pytest<4" -e py37-test

In this case, if Numpy or PyTest are needed by the tox environment, the versions that will be installed will satisfy the version specification supplied.

Caveats

This plugin will not work properly if you use the -i/--index-url option manually when calling tox. In addition, this will only work with pip-based installs, and will not work with e.g. tox-conda.

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_pypi_filter-0.15.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tox_pypi_filter-0.15-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file tox_pypi_filter-0.15.tar.gz.

File metadata

  • Download URL: tox_pypi_filter-0.15.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tox_pypi_filter-0.15.tar.gz
Algorithm Hash digest
SHA256 44900cce4ac3e9b87afb0b2c784f309c6522609b1aea9cb7ab6c1de8a078cbd8
MD5 7e2da043cac686d21d3bb54445ce5b74
BLAKE2b-256 0f839d52fbbb41f22921017257dc29047e4d46f76419591b2db5842cef24a4a9

See more details on using hashes here.

File details

Details for the file tox_pypi_filter-0.15-py3-none-any.whl.

File metadata

  • Download URL: tox_pypi_filter-0.15-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tox_pypi_filter-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 329861f067900fb0eb169236fd8a40213295ee907c7cc257c8804806b46be330
MD5 6046286a26071bde0f634d9e3c1b2059
BLAKE2b-256 36975935dab17d41172a2e92e4ec3532c9bbb5ac29a92e31b4d893324244c99b

See more details on using hashes here.

Supported by

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