From f81faa7dd1fd95508129610e197f1295045c620d Mon Sep 17 00:00:00 2001 From: sigma67 Date: Thu, 1 Aug 2024 17:32:23 +0200 Subject: [PATCH] Fix deprecation warning with pdm>=2.17 Signed-off-by: sigma67 --- src/pdm_build_locked/command.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pdm_build_locked/command.py b/src/pdm_build_locked/command.py index aa89dd8..4b69fb3 100644 --- a/src/pdm_build_locked/command.py +++ b/src/pdm_build_locked/command.py @@ -146,9 +146,7 @@ def _get_locked_packages(project: Project, group: str) -> list[str]: markers = import_module("pdm.models.markers") # use lowest supported specifier to include all deps - we don't know the target Python at build time env_spec = markers.EnvSpec.from_spec(str(project.python_requires)) - candidates = resolve_candidates_from_lockfile( - project, requirements, cross_platform=True, groups=[group], env_spec=env_spec - ) + candidates = resolve_candidates_from_lockfile(project, requirements, groups=[group], env_spec=env_spec) elif "cross_platform" in supported_params: # pdm 2.11.0+ requirements = list(project.get_dependencies(group).values()) # type: ignore[attr-defined]