From 721afaaef4bdbf20c5dff5229c155ac33a6a014b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 20 Jan 2017 18:14:28 -0500 Subject: [PATCH] .lock --- Pipfile.freeze => Pipfile.lock | 0 pipenv/core.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename Pipfile.freeze => Pipfile.lock (100%) diff --git a/Pipfile.freeze b/Pipfile.lock similarity index 100% rename from Pipfile.freeze rename to Pipfile.lock diff --git a/pipenv/core.py b/pipenv/core.py index 4b4095ec..6c3f4a0f 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -38,7 +38,7 @@ class Project(object): def lockfile_location(self): - return '{}.freeze'.format(self.pipfile_location()) + return '{}.lock'.format(self.pipfile_location()) def lockfile_exists(self): return os.path.isfile(self.lockfile_location()) @@ -337,7 +337,7 @@ def init(dev=False): project.create_pipfile() # Create the Pipfile.freeze too. - click.echo(crayons.yellow('Creating a Pipfile.freeze as well...')) + click.echo(crayons.yellow('Creating a Pipfile.lock as well...')) do_freeze() # Display where the Project is established. @@ -363,14 +363,14 @@ def init(dev=False): # Check that the hash of the Lockfile matches the lockfile's hash. if not lockfile['_meta']['Pipfile-sha256'] == p.hash: - click.echo(crayons.red('Pipfile.freeze out of date, updating...')) + click.echo(crayons.red('Pipfile.lock out of date, updating...')) do_freeze() with open(project.lockfile_location(), 'w') as f: f.write(p.freeze()) - click.echo(crayons.yellow('Installing dependencies from Pipfile.freeze...')) + click.echo(crayons.yellow('Installing dependencies from Pipfile.lock...')) else: @@ -383,7 +383,7 @@ def init(dev=False): # Write out the lockfile if it doesn't exist. if not project.lockfile_exists(): - click.echo(crayons.yellow('Pipfile.freeze not found, creating...')) + click.echo(crayons.yellow('Pipfile.lock not found, creating...')) with codecs.open(project.lockfile_location(), 'w', 'utf-8') as f: f.write(p.freeze())