Attempt at plette loading the Pipfile data for default and develop.

This commit is contained in:
Matt Davis
2022-09-20 21:06:48 -04:00
parent 7ef550afca
commit 4383328d82
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -2763,6 +2763,7 @@ def do_check(
# Run the PEP 508 checker in the virtualenv.
cmd = _cmd + [Path(pep508checker_path).as_posix()]
c = run_command(cmd, is_verbose=project.s.is_verbose())
results = []
if c.returncode is not None:
try:
results = simplejson.loads(c.stdout.strip())
+2 -2
View File
@@ -90,8 +90,8 @@ class Lockfile(DataView):
"requires": _copy_jsonsafe(pipfile._data.get("requires", {})),
"sources": _copy_jsonsafe(pipfile.sources._data),
},
"default": {},
"develop": {},
"default": _copy_jsonsafe(pipfile._data.get("packages", {})),
"develop": _copy_jsonsafe(pipfile._data.get("dev-packages", {})),
}
return cls(data)