Skip to content

Commit

Permalink
Fix for skip-lock installing wrong package version when pipfile entry…
Browse files Browse the repository at this point in the history
… is not a dict
  • Loading branch information
matteius committed Oct 29, 2024
1 parent 0d7160e commit a3165dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pipenv/routines/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ def do_install_dependencies(
install_req, markers, req_line = install_req_from_pipfile(
req_name, pipfile_entry
)
req_line = f"{req_line}; {markers}" if markers else f"{req_line}"
deps_list.append(
(
install_req,
Expand Down
4 changes: 2 additions & 2 deletions pipenv/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,8 @@ def install_req_from_pipfile(name: str, pipfile: Dict[str, Any]) -> Tuple[Any, A
vcs = next(iter([vcs for vcs in VCS_LIST if pipfile.startswith(f"{vcs}+")]), None)
if vcs is not None:
_pipfile[vcs] = pipfile
else: # normal named requirement
_pipfile["version"] = pipfile

extras = _pipfile.get("extras", [])
extras_str = f"[{','.join(extras)}]" if extras else ""
Expand Down Expand Up @@ -1217,8 +1219,6 @@ def handle_non_vcs_requirement(
return file_path_from_pipfile(_pipfile["file"], _pipfile)
else:
version = get_version(_pipfile)
if version and not is_star(version) and COMPARE_OP.match(version) is None:
version = f"=={version}"
if is_star(version) or version == "==*":
version = ""

Expand Down

0 comments on commit a3165dc

Please sign in to comment.