use dashes for pep 508 specifiers

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-06 02:01:30 -04:00
parent 8cd08f1093
commit 9573fc3a6d
+2 -2
View File
@@ -498,7 +498,7 @@ def do_lock(no_hashes=True):
# Run the PEP 508 checker in the virtualenv, add it to the lockfile.
c = delegator.run('"{0}" {1}'.format(which('python'), pep508checker.__file__.rstrip('cdo')))
lockfile['_meta']['host_508_specifiers'] = json.loads(c.out)
lockfile['_meta']['host-508-specifiers'] = json.loads(c.out)
# Write out the lockfile.
with open(project.lockfile_location, 'w') as f:
@@ -552,7 +552,7 @@ def do_lock(no_hashes=True):
# Run the PEP 508 checker in the virtualenv, add it to the lockfile.
c = delegator.run('"{0}" {1}'.format(which('python'), pep508checker.__file__.rstrip('cdo')))
lockfile['_meta']['host_508_specifiers'] = json.loads(c.out)
lockfile['_meta']['host-508-specifiers'] = json.loads(c.out)
# Write out lockfile.
with open(project.lockfile_location, 'w') as f: