mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge branch 'master' of github.com:kennethreitz/pipenv
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
Unreleased:
|
||||
- Fix issue with nested directories all containing Pipfiles.
|
||||
8.0.1:
|
||||
- Fix weird edge case with ramuel.ordereddict.
|
||||
8.0.0:
|
||||
|
||||
+4
-4
@@ -238,7 +238,7 @@ Here's a more complex example::
|
||||
[packages]
|
||||
unittest2 = {version = ">=1.0,<3.0", markers="python_version < '2.7.9' or (python_version >= '3.0' and python_version < '3.4')"}
|
||||
|
||||
Magic. Pure, unalderated magic.
|
||||
Magic. Pure, unadulterated magic.
|
||||
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ If a ``.env`` file is present in your project, ``$ pipenv shell`` and ``$ pipenv
|
||||
'WORLD'
|
||||
|
||||
This is very useful for keeping production credentials out of your codebase.
|
||||
We do not recommend comitting ``.env`` files into source control!
|
||||
We do not recommend committing ``.env`` files into source control!
|
||||
|
||||
.. _proper_installation:
|
||||
|
||||
@@ -453,7 +453,7 @@ To upgrade pipenv at any time::
|
||||
☤ Crude Installation of Pipenv
|
||||
------------------------------
|
||||
|
||||
If you don't even have pip installed, you can use this crude installation method, which will boostrap your whole system::
|
||||
If you don't even have pip installed, you can use this crude installation method, which will bootstrap your whole system::
|
||||
|
||||
$ curl https://raw.githubusercontent.com/kennethreitz/pipenv/master/get-pipenv.py | python
|
||||
|
||||
@@ -483,7 +483,7 @@ The user can provide these additional parameters:
|
||||
|
||||
- ``--two`` — Performs the installation in a virtualenv using the system ``python2`` link.
|
||||
- ``--three`` — Performs the installation in a virtualenv using the system ``python3`` link.
|
||||
- ``--python`` — Performs the installation in a virtualenv using the provided Python intepreter.
|
||||
- ``--python`` — Performs the installation in a virtualenv using the provided Python interpreter.
|
||||
|
||||
.. warning:: None of the above commands should be used together. They are also
|
||||
**destructive** and will delete your current virtualenv before replacing
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ managing development and testing environments for any kind of project.
|
||||
☤ Make sure you've got Python & pip
|
||||
------------------------------------
|
||||
|
||||
Before you go any further, make sure you have Python and that it's avalable
|
||||
Before you go any further, make sure you have Python and that it's available
|
||||
from your command line. You can check this by simply running:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
+7
-7
@@ -88,7 +88,7 @@ if not PIPENV_HIDE_EMOJIS:
|
||||
if ((now.tm_mon == 10) and (now.tm_day == 30)) or ((now.tm_mon == 10) and (now.tm_day == 31)):
|
||||
INSTALL_LABEL = '🎃 '
|
||||
|
||||
# Chrismas easter-egg.
|
||||
# Christmas easter-egg.
|
||||
elif ((now.tm_mon == 12) and (now.tm_day == 24)) or ((now.tm_mon == 12) and (now.tm_day == 25)):
|
||||
INSTALL_LABEL = '🎅 '
|
||||
|
||||
@@ -653,7 +653,7 @@ def do_where(virtualenv=False, bare=True):
|
||||
if not virtualenv:
|
||||
location = project.pipfile_location
|
||||
|
||||
# Shorten the virual display of the path to the virtualenv.
|
||||
# Shorten the virtual display of the path to the virtualenv.
|
||||
if not bare:
|
||||
location = shorten_path(location)
|
||||
|
||||
@@ -697,7 +697,7 @@ def do_install_dependencies(
|
||||
if verbose:
|
||||
click.echo(crayons.blue(c.out or c.err))
|
||||
|
||||
# The Installtion failed...
|
||||
# The Installation failed...
|
||||
if c.return_code != 0:
|
||||
|
||||
# Save the Failed Dependency for later.
|
||||
@@ -817,7 +817,7 @@ def do_install_dependencies(
|
||||
index=index
|
||||
)
|
||||
|
||||
# The Installtion failed...
|
||||
# The Installation failed...
|
||||
if c.return_code != 0:
|
||||
|
||||
# We echo both c.out and c.err because pip returns error details on out.
|
||||
@@ -873,7 +873,7 @@ def do_create_virtualenv(python=None, site_packages=False):
|
||||
crayons.normal(u'to create virtualenv…', bold=True)
|
||||
))
|
||||
|
||||
# Use virutalenv's -p python.
|
||||
# Use virtualenv's -p python.
|
||||
if python:
|
||||
cmd = cmd + ['-p', python]
|
||||
|
||||
@@ -2037,7 +2037,7 @@ def run(command, args, three=None, python=False):
|
||||
|
||||
load_dot_env()
|
||||
|
||||
# Seperate out things that were passed in as a string.
|
||||
# Separate out things that were passed in as a string.
|
||||
_c = list(command.split())
|
||||
command = _c.pop(0)
|
||||
if _c:
|
||||
@@ -2067,7 +2067,7 @@ def run(command, args, three=None, python=False):
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
# Execute the comand.
|
||||
# Execute the command.
|
||||
os.execl(command_path, command_path, *args)
|
||||
pass
|
||||
|
||||
|
||||
+1
-1
@@ -354,7 +354,7 @@ class Project(object):
|
||||
if not self.pipfile_exists:
|
||||
return True
|
||||
|
||||
with open('Pipfile', 'r') as f:
|
||||
with open(self.pipfile_location, 'r') as f:
|
||||
if not f.read():
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user