From f5ed109802ec48fb96860b50042d59fe7920da25 Mon Sep 17 00:00:00 2001 From: Daniel Radetsky Date: Wed, 21 Feb 2018 22:17:02 -0800 Subject: [PATCH 1/2] document pip commands from pipenv --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 81bc535d..0dcecdbe 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -109,7 +109,7 @@ Other Commands - ``graph`` will show you a dependency graph, of your installed dependencies. - ``shell`` will spawn a shell with the virtualenv activated. -- ``run`` will run a given command from the virtualenv, with any arguments forwarded (e.g. ``$ pipenv run python``). +- ``run`` will run a given command from the virtualenv, with any arguments forwarded (e.g. ``$ pipenv run python``). Notably, ``run`` can be used to invoke various pip utility commands, as in ``$ pipenv run pip show requests``. - ``check`` checks for security vulnerabilities and asserts that PEP 508 requirements are being met by the current environment. From 91bf48bf2974bd9e8b418addb4f1c32475d24e67 Mon Sep 17 00:00:00 2001 From: Daniel Radetsky Date: Wed, 21 Feb 2018 22:33:13 -0800 Subject: [PATCH 2/2] add more pip examples --- README.rst | 3 +++ pipenv/core.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/README.rst b/README.rst index 62a76ca5..48edbd4e 100644 --- a/README.rst +++ b/README.rst @@ -151,6 +151,9 @@ Fish is the best shell. You should use it. Install a local setup.py into your virtual environment/Pipfile: $ pipenv install -e . + Use a lower-level pip command to get info about a package: + $ pipenv run pip show requests + Commands: check Checks for security vulnerabilities and... graph Displays currently–installed dependency graph... diff --git a/pipenv/core.py b/pipenv/core.py index c672f72f..2979bfd4 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1537,6 +1537,9 @@ Usage Examples: Install a local setup.py into your virtual environment/Pipfile: $ {5} + Use a lower-level pip command to get info about a package: + $ {8} + Commands:""".format( crayons.red('pipenv --three'), crayons.red('pipenv --python 3.6'), @@ -1546,6 +1549,7 @@ Commands:""".format( crayons.red('pipenv install -e .'), crayons.red('pipenv lock --pre'), crayons.red('pipenv check'), + crayons.red('pipenv run pip show requests'), ) help = help.replace('Commands:', additional_help)