All Projects → tox-dev → tox-venv

tox-dev / tox-venv

Licence: BSD-3-Clause license
Use Python 3 venvs for Python 3 test environments

Programming Languages

python
139335 projects - #7 most used programming language

tox-venv

Note the project has been deprecated as of 2020 May the 1st. virtualenv now creates venv style environments out of box, so this plugin is no longer needed.

https://travis-ci.org/tox-dev/tox-venv.svg?branch=master https://ci.appveyor.com/api/projects/status/fak35ur9yibmn0ly?svg=true

What is tox-venv?

tox-venv is a plugin that uses Python 3's builtin venv module for creating test environments instead of creating them with the virtualenv package. For Python versions that do not include venv (namely 3.2 and earlier), this package does nothing and reverts to tox's default implementation.

Why use tox-venv?

tox-venv was originally created because of compatibility issues between modern versions of Python and an aging virtualenv. Since then, virtualenv has undergone a major rewrite, and tox-venv has largely been made unnecessary. However, there may be cases where it's preferable to create test environments directly with the venv module, in which case you should use tox-venv.

Installation & Usage

To use tox-venv, install it alongside tox in your environment. Then, run tox as normal - no configuration necessary.

$ pip install tox tox-venv
$ tox

If you have already ran tox, it's necessary to recreate the test envs. Either run tox --recreate, or delete the .tox directory.

Compatibility

tox-venv is compatible with both Python 2 and 3, however it only creates test environments in Python 3.3 and later. Python 3.3 environments are only partially compatible, as not all options (such as --copies/--symlinks) were supported. Environments for Python 3.4 and later are fully compatible.

Release process

  • Update changelog
  • Update package version in setup.py
  • Create git tag for version
  • Upload release to PyPI
$ pip install -U twine setuptools wheel
$ rm -rf dist/ build/
# python setup.py sdist bdist_wheel
$ twine upload dist/*
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].