From b6e3b3db8ffb67f339ffac8dae142c98c7ac0014 Mon Sep 17 00:00:00 2001 From: betaboon Date: Tue, 21 Feb 2023 14:33:30 +0100 Subject: [PATCH] fix: normalize package-name from pdm-lockfile --- pycross/private/tools/pdm_translator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycross/private/tools/pdm_translator.py b/pycross/private/tools/pdm_translator.py index b0bef0ca..b6eede40 100644 --- a/pycross/private/tools/pdm_translator.py +++ b/pycross/private/tools/pdm_translator.py @@ -99,7 +99,7 @@ def get_packages(project: Project) -> Dict[PackageKey, Package]: _dependencies, _, _ = repository.get_dependencies(_package) package_key = candidate_package_key(_package) - package_name = _package.name + package_name = package_canonical_name(_package.name) package_version = Version(str(_package.version)) package_python_versions = _package.requires_python package_dependencies = []