add sort_keys param to sort lockfile

This commit is contained in:
Bulat Khasanov
2017-03-04 18:16:36 +03:00
parent 838a40080e
commit f98b63b610
+1 -1
View File
@@ -440,7 +440,7 @@ def do_lock():
# Write out lockfile.
with open(project.lockfile_location, 'w') as f:
f.write(json.dumps(lockfile, indent=4, separators=(',', ': ')))
json.dump(lockfile, f, indent=4, separators=(',', ': '), sort_keys=True)
# Purge the virtualenv download dir, for next time.
with spinner():