Skip to content

Commit

Permalink
fix 2.17 deprecationwarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vibpz committed Jul 12, 2024
1 parent 3d35f10 commit 3c9a9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdm_build_locked/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def _get_locked_packages(project: Project, group: str) -> list[str]:
from pdm.cli.actions import resolve_candidates_from_lockfile

supported_params = inspect.signature(resolve_candidates_from_lockfile).parameters
requirements = list(project.get_dependencies(group).values())
requirements = list(project.get_dependencies(group))
if "cross_platform" in supported_params:
# pdm 2.11.0+
candidates = resolve_candidates_from_lockfile(project, requirements, cross_platform=True, groups=[group])
candidates = resolve_candidates_from_lockfile(project, requirements, groups=[group])
else: # pragma: no cover
# for older PDM versions, adjust resolve_candidates_from_lockfile with cross_platform=True
provider = project.get_provider(for_install=True)
Expand Down

0 comments on commit 3c9a9b7

Please sign in to comment.