Skip to content

Commit

Permalink
Merge pull request #277 from mariusvniekerk/issue-274
Browse files Browse the repository at this point in the history
Closes #274
  • Loading branch information
mariusvniekerk authored Nov 15, 2022
2 parents c3bca56 + b95c121 commit c61696e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conda_lock/src_parser/pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ def parse_python_requirement(
name = parsed_req.unsafe_name.lower()
collapsed_version = ",".join("".join(spec) for spec in parsed_req.specs)
conda_version = poetry_version_to_conda_version(collapsed_version)
if conda_version:
conda_version = ",".join(sorted(conda_version.split(",")))

if normalize_name:
conda_dep_name = normalize_pypi_name(name)
Expand Down

0 comments on commit c61696e

Please sign in to comment.