Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for --skip-lock #5368

Merged
merged 12 commits into from
Sep 21, 2022
1 change: 1 addition & 0 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 3 additions & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ def _lockfile(self):
lock_section = lockfile.get(section, {})
for key in list(lock_section.keys()):
norm_key = pep423_name(key)
lockfile[section][norm_key] = lock_section.pop(key)
specifier = lock_section[key]
del lock_section[key]
lockfile[section][norm_key] = specifier

return lockfile._data

Expand Down
4 changes: 2 additions & 2 deletions pipenv/vendor/plette/lockfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def with_meta_from(cls, pipfile):
"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)

Expand Down