Keeps your tox virtualenv always up to date with dependencies
Project description
tox-auto-env
The virtualenv behind your tox environments will always reflect the
dependencies at the time of running. Never use tox --recreate
again.
Why
When testing or developing you may be updating or adding dependencies in the
tox.ini
or requirements.txt
files. You may then be stashing those changes
because they were bad. You may be switching between branches that have
different dependencies. Each time you do this, you need to recreate the tox
virtualenv so that those dependencies are correctly installed. Running tox --recreate
does this by deleting that virtualenv and starting fresh.
How it works
When tox-auto-env
is installed, virtualenvs created by tox are identified by
a hash of the dependencies that are installed in it. i.e. if you have 2
branches with different dependencies, running tox on each of those branches
will create 2 separate virtualenvs that will be used for those 2 branches.
How to use
tox-auto-env
is a tox
plugin. Use pip install tox-auto-env
to install.
If installed correctly, it should show up when tox --version
is run.
Kudos
Inspired by tox-battery
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-auto-env-0.0.8.tar.gz
.
File metadata
- Download URL: tox-auto-env-0.0.8.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e57cbaaa2542688aa24c2781026a537138788df3a5bb3f9d85d52049557335f |
|
MD5 | 2b09324eb7482a4c2a50ba84fba3df23 |
|
BLAKE2b-256 | 7ad94aa82fef741c6f844803a82153921526cc2c6e8f82b04a5c5866e999bc44 |
File details
Details for the file tox_auto_env-0.0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: tox_auto_env-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21345be3b8240e686137dd4faa55b88840358b23f7e0205100776963e1f3182d |
|
MD5 | 39ec95947830ca70c0a89d7dabd9f60e |
|
BLAKE2b-256 | c19dff62f966041aad237f8ec89a8f1400c262faae0b0a1d21686092aaf4ddbc |