Skip to content

Commit

Permalink
Wrong method used to get synchronizer (#44)
Browse files Browse the repository at this point in the history
* Wrong method used to get synchronizer

Signed-off-by: Frost Ming <me@frostming.com>

* add news

Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming authored Sep 6, 2024
1 parent 4edd6ca commit fff753e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/44.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the wrong method used to get synchronizer for PDM 2.19+
4 changes: 2 additions & 2 deletions src/pdm_packer/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def prepare_lib_for_pack(self, compile: bool = False) -> Path:
"""
project = self.project
this_paths = self.get_paths()
requirements = project.get_dependencies().values()
requirements = project.get_dependencies()
if PDM_VERSION >= (2, 19):
from pdm.cli.actions import resolve_from_lockfile

packages = resolve_from_lockfile(project, requirements, groups=["default"])
synchronizer = project.core.get_synchronizer()(
synchronizer = project.get_synchronizer()(
self,
install_self=bool(project.name),
no_editable=True,
Expand Down

0 comments on commit fff753e

Please sign in to comment.