Skip to content

Commit

Permalink
Merge pull request #704 from maresb/always-convert-versions
Browse files Browse the repository at this point in the history
Always convert Poetry versions to Conda versions
  • Loading branch information
maresb authored Sep 15, 2024
2 parents c5c9e9e + 0216d55 commit 50077af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions conda_lock/src_parser/pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ def parse_poetry_pyproject_toml(
f"Unsupported type for dependency: {depname}: {depattrs}"
)

if manager == "conda":
name = pypi_name_to_conda_name(depname, mapping_url=mapping_url)
version = poetry_version_to_conda_version(poetry_version_spec)
else:
name = depname
version = poetry_version_spec
name = (
pypi_name_to_conda_name(depname, mapping_url=mapping_url)
if manager == "conda"
else depname
)
version = poetry_version_to_conda_version(poetry_version_spec)

if "git" in depattrs and url is not None:
url, rev = unpack_git_url(url)
Expand Down

0 comments on commit 50077af

Please sign in to comment.