Skip to main content

A pipenv plugin for tox

Project description

Tox-Pipenv

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.

requirements.txt files will also be parsed by Pipenv and used for each test environment

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

Release notes

1.2.1 (2018-01-08)

  • Added documentation and fixed pypi build

1.2.0 (2018-01-08)

  • Virtual environments are now correctly stored in .tox/<pyver>/.venv

  • Packages will be reported by pipenv graph after installation. Pip freeze is still being run, downstream PR raised in tox

  • Plugin should not accidentally remove host virtualenv binaries

1.1.0 (2017-12-30)

  • Use Pipenv install –dev as the default installation command

1.0.0 (2017-12-22)

  • Support for creation and recreation of virtual environments using Pipenv

  • Isolation of Pipfile within the tox directory

  • Support for installation of tox-specified packages in Pipenv

  • Support for execution of test commands within a Pipenv virtual env

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tox_pipenv-1.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file tox-pipenv-1.2.1.tar.gz.

File metadata

  • Download URL: tox-pipenv-1.2.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tox-pipenv-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e71c111710b1c92ee5b33a6ba31596d70d499667f640752e9ac5e252007dc544
MD5 9c25d6232a99098288e22c3ae3cdc422
BLAKE2b-256 2636fb35563eed19e601eec9fa9572a6b609334c8774ec6fbacf2a26b1f70e93

See more details on using hashes here.

File details

Details for the file tox_pipenv-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tox_pipenv-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2fd7ea04aef8549d0689036e55fb11b1b13201295ceabe1363be101cf53b3ee
MD5 063d10045967059f13cafaa8015d48cf
BLAKE2b-256 885c27e28cc9a2eb4e4a2f363fb903ee2fb9ea484e0e11647a26b437b5e46fd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page