pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

Documentation for PIPENV_YES

Open Fran-Rg opened this issue 3 years ago • 2 comments

Issue description

I was running some automation and one process had the pipenv install to call pyenv and install a version of python for me. During that install I was prompted if I was fine with installing the new python version. I wanted to skip that prompt and auto approve. I looked through documentation/help and it took me 2h to dig the code to find this line: https://github.com/pypa/pipenv/blob/main/pipenv/core.py#L408

And understand that I simply needed to do:

export PIPENV_YES=1

For my result to work

Expected result

pipenv install --help provides information on the expected env variable config Searching for "auto approve", "yes", "PIPENV_YES" on https://pipenv-fork.readthedocs.io/en/latest/advanced.html returns something documentation about PIPENV_YES

Actual result

No documentation about it that I can reasonably find

Fran-Rg avatar Apr 13 '22 16:04 Fran-Rg

Hi - I want to second this request. I came here today specifically to request and it seems it has already been done! A switch for --force-install-python or something would also be a good idea IMO if we want to make the process more readable for others.

jdix531 avatar Apr 16 '22 13:04 jdix531

Just wanted to call out that pipenv-fork is not the actual documentation, which is hosted at: https://pipenv.pypa.io/en/latest/

matteius avatar Jul 24 '22 20:07 matteius

@Fran-Rg I found https://pipenv.pypa.io/en/latest/advanced/#pipenv.environments.Setting.PIPENV_YES

PIPENV_YES If set, Pipenv automatically assumes “yes” at all prompts. Default is to prompt the user for an answer if the current command line session if interactive.

Can you close?

chai3 avatar Nov 14 '22 16:11 chai3