Pipenv


[ 1 About ] [ 2 Guidelines ] [ 3 Requirements ] [ 4 Files ] [ 5 Workflow ]

About

Workflows with python’s new development/packaging environment tool.

Guidelines

Pipenv handles converting setup.py’s abstract dependencies into concrete dependencies and driving a virtual environment with them.

Requirements

 

# Not yet available on Ubuntu as a deb > pip3 install --user pipenv

Files

  • Abstract dependency rules are in ./Pipfile

  • Concrete dependency versions are locked in ./Pipfile.lock

  • Virtualenvs are created in ~/.local/share/virtualenvs.

Workflow

 

> pipenv --three > pipenv install pydot (rule for a specific dependency) > pipenv install --dev -e . (rules for everything in extras_requires?) > pipenv install --dev -e .[docs] (rules for everything in extras_requires specified by keywords) > pipenv install -e . (rules for everything in install_requires) > pipenv install --dev (install every development dependency into the virtualenv) > pipenv install (install every install dependency into the virtualenv) > pipenv update (equilavent to pipenv lock && pipenv sync)