Skip to content

Commit

Permalink
Skip path dependencies (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
njlr authored Jan 6, 2025
1 parent 06bacc3 commit c43ddf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycross/private/tools/poetry_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def translate(project_file: Path, lock_file: Path) -> RawLockSet:
if isinstance(pin_info, str):
pinned_package_specs[pin] = parse_constraint(pin_info)
else:
if "path" in pin_info:
# Skip path dependencies.
continue
pinned_package_specs[pin] = parse_constraint(pin_info["version"])

def parse_file_info(file_info) -> PackageFile:
Expand Down

0 comments on commit c43ddf8

Please sign in to comment.