diff --git a/Pipfile.freeze b/Pipfile.freeze index b15977a4..088298f4 100644 --- a/Pipfile.freeze +++ b/Pipfile.freeze @@ -1 +1,25 @@ -{"default": {"crayons": "==0.1.1", "colorama": "==0.3.7", "daemon": "==1.1", "delegator.py": "==0.0.1", "pexpect": "==4.2.1", "toml": "==0.9.2", "click": "==6.7", "ptyprocess": "==0.5.1"}, "develop": {}, "_meta": {"sources": [{"url": "https://pypi.org/", "verify_ssl": true}], "requires": {}, "Pipfile-sha256": "ce6157382da4a84c865a7f63c551bb4112c15c3168158e4b21ce08c933e4c164"}} \ No newline at end of file +{ + "default": { + "crayons": "==0.1.1", + "colorama": "==0.3.7", + "daemon": "==1.1", + "delegator.py": "==0.0.1", + "pexpect": "==4.2.1", + "toml": "==0.9.2", + "click": "==6.7", + "ptyprocess": "==0.5.1" + }, + "develop": {}, + "_meta": { + "sources": [ + { + "url": "https://pypi.org/", + "verify_ssl": true + } + ], + "requires": { + "python_version": "2.7" + }, + "Pipfile-sha256": "60ab5a49039ff95807e6c72bf5863478a3a75f3db3bfe5e5dac6cea075b490e9" + } +} \ No newline at end of file diff --git a/pipenv/_pipfile/api.py b/pipenv/_pipfile/api.py index 5d57cbb2..3f6d1801 100644 --- a/pipenv/_pipfile/api.py +++ b/pipenv/_pipfile/api.py @@ -145,7 +145,7 @@ class Pipfile(object): data = self.data data['_meta']['Pipfile-sha256'] = self.hash # return _json.dumps(data) - return json.dumps(data) + return json.dumps(data, indent=4, separators=(',', ': ')) def assert_requirements(self): """"Asserts PEP 508 specifiers.""" diff --git a/pipenv/core.py b/pipenv/core.py index 66f0f3e3..18103aee 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -277,7 +277,7 @@ def do_freeze(): lockfile['default'].update(convert_deps_from_pip(dep)) with open(project.lockfile_location(), 'w') as f: - f.write(json.dumps(lockfile)) + f.write(json.dumps(lockfile, indent=4, separators=(',', ': '))) click.echo(crayons.yellow('Note: ') + 'your project now has only default packages installed.') click.echo('To install dev-packages, run: $ {}'.format(crayons.red('pipenv init --dev')))