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 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