Pipenv plugin for asdf version manager.
Inspired by asdf-poetry
.
curl
;python
(version 3.4 or newer).
At the moment, pipenv
is installed by creating a virtual environment
using an active interpreter (system or installed via
asdf-python).
If the interpreter that was active at the time of installation
is subsequently deleted, the installed pipenv
version will stop working.
To fix, you will have to reinstall affected pipenv
version.
With asdf already installed:
asdf plugin-add pipenv https://github.com/and-semakin/asdf-pipenv.git
To list all versions
asdf list all pipenv
To install a specific version of pipenv
:
asdf install pipenv 2018.11.26
asdf install pipenv 2020.4.1b2
To uninstall a specific version of pipenv
:
asdf uninstall pipenv 2018.11.26
To set a global version of pipenv
:
asdf global pipenv 2020.4.1b2
To set a project-specific version of pipenv
:
asdf local pipenv 2018.11.26
Automatically activate the pipenv virtualenv when entering the directory with the following
.rtx.toml
:
[tools]
pipenv = {version='latest', pipfile='Pipfile'}
python = '3.11' # must be after pipenv so the pipenv bin is first in PATH