Skip to content

Commit

Permalink
fix resolution, pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jul 30, 2023
1 parent 07e4dde commit f55e409
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 @@ -154,12 +154,12 @@ def _get_locked_packages(project: Project, group: str) -> List[str]:
# taken from pdm.actions.resolve_candidates_from_lockfile and adjusted so
# that environment markers are not evaluated
# -- we want to publish all requirements with markers
provider = project.get_provider(ignore_compatibility=True)
provider = project.get_provider(strategy="reuse", ignore_compatibility=True)
resolver = project.core.resolver_class(provider, BaseReporter()) # type: ignore
reqs = list(requirements.values())
candidates, *_ = resolve(resolver, reqs, project.environment.python_requires)

return [str(c.req) for c in candidates.values()]
return [str(c.req.as_pinned_version(c.version)) for c in candidates.values()]

@staticmethod
def _git_ignore_pyproject(project: Project, ignore: bool = True) -> None:
Expand Down

0 comments on commit f55e409

Please sign in to comment.