Skip to content

Commit

Permalink
Fix deprecation warning with pdm>=2.17
Browse files Browse the repository at this point in the history
Signed-off-by: sigma67 <sigma67.github@gmail.com>
  • Loading branch information
sigma67 committed Aug 1, 2024
1 parent 9339c4a commit f81faa7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pdm_build_locked/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f81faa7

Please sign in to comment.