Skip to main content

A pipenv plugin for tox

Project description

https://img.shields.io/pypi/v/tox-pipenv.svg https://img.shields.io/travis/tonybaloney/tox-pipenv.svg https://codecov.io/gh/tonybaloney/tox-pipenv/branch/master/graph/badge.svg Updates Python 3

A Tox plugin to replace the default use of virtualenv with Pipenv.

This is a convenient way to retain your use of Pipenv, whilst testing multiple versions of Python.

Installation

pip install tox-pipenv

Or,

pipenv install tox-pipenv

Creating virtual environments

With this plugin, tox will use pipenv –python {python binary} as given to the tox interpreter for each python path.

If you already have virtual environments cached with tox, use the –recreate flag to recreate them with pipenv.

Note: Tox will pass the –site-packages flag to pipenv if this is configured in your Tox config.

The Pipfile will exist in .tox/{env}/Pipfile as well as Pipfile.lock

Installing requirements

The installation of requirements from your tox config will be passed to pipenv install for installation into the virtual environment. This replaces the use of pip within tox.

Executing tests

Each of the commands in your testenv configuration will be passed to pipenv to execute within the pipenv virtual environment

TODO

This plugin needs work, namely:

  • Tox always calls pip freeze to show versions, this is not yet pluggable

  • The use of environment variables is a bit dangerous, move the code to calling the project class functions directly.

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-pipenv-1.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

tox_pipenv-1.1.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded 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