Skip to main content

Use python3 venvs for python3 tox testenvs

Project description

https://travis-ci.org/rpkilby/tox-venv.svg?branch=master

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.

Why use tox-venv?

virtualenv is historically python 2/3 compatible, however to achieve this, it ships some files that are pinned at their python 2.6 version, such as the site module (see: pypa/virtualenv#355). This has a couple of effects:

  • Builds using the -Werror option fail, as the deprecations are raised before the test suite can run.

  • Users cannot take advantage of newer features of the site module in their test environments.

  • Eventually, these deprecations will become exceptions in future versions of python.

Eventually, tox-venv should become obsolete once the corresponding PR is merged (tox-dev/tox#630). At that point, it should be safe to simply remove tox-venv from your test dependencies.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tox_venv-0.1.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tox_venv-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tox_venv-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 69006ebed545d9702450f99a8b6672f908c5ced37706dbeffec5acd2f22bd35e
MD5 402da3bc4e8b4da53a229f11ffab99c8
BLAKE2b-256 426640913f5a638415c41dae88ded2bbdff3b4496592046d93effca5320790dc

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