new pipfile spec specifier

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-02 13:28:03 -04:00
parent 77fc1cb115
commit ecee85016a
+1
View File
@@ -142,6 +142,7 @@ class Pipfile(object):
"""Returns a JSON representation of the Pipfile."""
data = self.data
data['_meta']['hash'] = {"sha256": self.hash}
data['_meta']['pipfile-spec'] = 1
# return _json.dumps(data)
return json.dumps(data, indent=4, separators=(',', ': '))