Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Sep 30, 2017
1 parent 4c860c3 commit 59e8507
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipfile/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def format_full_version(info):
return version



class PipfileParser(object):
def __init__(self, filename='Pipfile'):
self.filename = filename
Expand All @@ -37,7 +38,7 @@ def parse(self):

# Load the default configuration.
default_config = {
u'source': [{u'url': u'https://pypi.python.org/simple', u'verify_ssl': True}],
u'source': [{u'url': u'https://pypi.python.org/simple', u'verify_ssl': True, 'name': "pypi"}],
u'packages': {},
u'requires': {},
u'dev-packages': {}
Expand Down Expand Up @@ -107,8 +108,7 @@ def lock(self):
"""Returns a JSON representation of the Pipfile."""
data = self.data
data['_meta']['hash'] = {"sha256": self.hash}
data['_meta']['pipfile-spec'] = 2
# return _json.dumps(data)
data['_meta']['pipfile-spec'] = 6
return json.dumps(data, indent=4, separators=(',', ': '))

def assert_requirements(self):
Expand Down

0 comments on commit 59e8507

Please sign in to comment.