Skip to main content

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.

Kudos

Inspired by tox-battery

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-auto-env-0.0.3.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

tox_auto_env-0.0.3-py2.py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 2 Python 3

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