mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
improvements
This commit is contained in:
+22
-1
@@ -66,9 +66,9 @@ Other Commands
|
||||
::
|
||||
|
||||
$ pipenv install
|
||||
Pipfile found at /Users/kennethreitz/repos/kr/pip2/test/Pipfile. Considering this to be the project home.
|
||||
Creating a virtualenv for this project...
|
||||
...
|
||||
No package provided, installing all dependencies.
|
||||
Virtualenv location: /Users/kennethreitz/repos/kr/pip2/test/.venv
|
||||
Installing dependencies from Pipfile.lock...
|
||||
...
|
||||
@@ -92,6 +92,27 @@ Other Commands
|
||||
Note: your project now has only default [packages] installed.
|
||||
To install [dev-packages], run: $ pipenv init --dev
|
||||
|
||||
::
|
||||
|
||||
$ pipenv install --dev
|
||||
Pipfile found at /Users/kennethreitz/repos/kr/pip2/test/Pipfile. Considering this to be the project home.
|
||||
Pipfile.lock out of date, updating...
|
||||
Assuring all dependencies from Pipfile are installed...
|
||||
Locking [dev-packages] dependencies...
|
||||
Locking [packages] dependencies...
|
||||
Note: your project now has only default [packages] installed.
|
||||
To install [dev-packages], run: $ pipenv install --dev
|
||||
Installing dependencies from Pipfile.lock...
|
||||
...
|
||||
|
||||
::
|
||||
$ pipenv uninstall
|
||||
No package provided, un-installing all dependencies.
|
||||
Found 25 installed package(s), purging...
|
||||
...
|
||||
Environment now purged and fresh!
|
||||
|
||||
|
||||
|
||||
☤ Installation
|
||||
--------------
|
||||
|
||||
+3
-3
@@ -308,9 +308,9 @@ def install(package_name=False, dev=False, system=False):
|
||||
sys.exit(1)
|
||||
|
||||
if dev:
|
||||
click.echo('Adding {0} to Pipfile\'s [dev-packages]...'.format(crayons.green(package_name)))
|
||||
click.echo('Adding {0} to Pipfile\'s {1}...'.format(crayons.green(package_name), crayons.red('[dev-packages]')))
|
||||
else:
|
||||
click.echo('Adding {0} to Pipfile\'s [packages]...'.format(crayons.green(package_name)))
|
||||
click.echo('Adding {0} to Pipfile\'s {1}...'.format(crayons.green(package_name), crayons.red('[packages]')))
|
||||
|
||||
# Add the package to the Pipfile.
|
||||
project.add_package_to_pipfile(package_name, dev)
|
||||
@@ -325,7 +325,7 @@ def uninstall(package_name=False, system=False):
|
||||
|
||||
# Un-install all dependencies, if none was provided.
|
||||
if package_name is False:
|
||||
click.echo(crayons.yellow('No package provided, un-installing all dependencies.'))
|
||||
click.echo(crayons.yellow('No package provided, un-installing all packages.'))
|
||||
do_purge(allow_global=system)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user