Skip to main content

Keeps your tox virtualenv always up to date with dependencies

Project description

tox-auto-env

CircleCI

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


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.6.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

tox_auto_env-0.0.6-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tox-auto-env-0.0.6.tar.gz.

File metadata

  • Download URL: tox-auto-env-0.0.6.tar.gz
  • Upload date:
  • Size: 2.3 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

Hashes for tox-auto-env-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1c682486a8b62c256a2d264c49daa66e7a579d7dc24773b62f3b1d7d0f657a43
MD5 9f4394944a381077bd86aff7a905c46e
BLAKE2b-256 eca16ca3a49ced7ed1a497260f8b892be685d0a965535385bc3216973d5fca5a

See more details on using hashes here.

File details

Details for the file tox_auto_env-0.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: tox_auto_env-0.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 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

Hashes for tox_auto_env-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 578ae434675058833b6ba19affc3e18012bacd14141165a56568c7492d207e5f
MD5 787fcacda6c041d3e4cde83742b17d5a
BLAKE2b-256 f5669c8aa127dedb005c0558f330fb776e45aada3d64f39184ef818645533ccf

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