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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tox-pypi-filter-0.14.tar.gz
.
File metadata
- Download URL: tox-pypi-filter-0.14.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6f3c38f968e56b01abc2d6ac7163f90da460bee697de9311feffde22d70974 |
|
MD5 | ec1f00a4ca950266d4e06012d68165bc |
|
BLAKE2b-256 | 1f16704a52cc93e368dadf5abf25c1f4ed27cd41621b31d9b98e782628aaa033 |
File details
Details for the file tox_pypi_filter-0.14-py3-none-any.whl
.
File metadata
- Download URL: tox_pypi_filter-0.14-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f021c964e53e850719f7f30507d4fb3df69b9c568ddf97f86805356697db9400 |
|
MD5 | a18685a5ae6b78b914dea41c68a5f525 |
|
BLAKE2b-256 | 7999011e14b611d945b29c2c583916aa6a34c77b81553ca475590ec29700ebed |