From 3d245b8521f18ca557601b01afc22126fea1814d Mon Sep 17 00:00:00 2001 From: njlr Date: Sat, 21 Dec 2024 18:47:42 +0000 Subject: [PATCH] Skip path dependencies --- pycross/private/tools/poetry_translator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pycross/private/tools/poetry_translator.py b/pycross/private/tools/poetry_translator.py index c80b6edc..b4d13d95 100644 --- a/pycross/private/tools/poetry_translator.py +++ b/pycross/private/tools/poetry_translator.py @@ -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: