Describe the bug
when tool.pdm.resolution.overrides is set to a range incompatible with project.dependencies for that dependency, the optional-dependencies group locked may be unusable in the resulting .whl file.
To Reproduce
Steps to reproduce the behavior:
- Set i.e.
tool.pdm.resolution.overrides to sphinx<7 and project.dependencies to sphinx>7.
sphinx==6.2.1 will be locked by pdm
- build the wheel using
pdm build
- install the wheel using
pip install mypkg[locked] - will yield ResolutionImpossible
Desired behavior
pdm build shall be aborted with an error stating that the locked dependency is incompatible with project.dependencies
Describe the bug
when
tool.pdm.resolution.overridesis set to a range incompatible withproject.dependenciesfor that dependency, the optional-dependencies grouplockedmay be unusable in the resulting.whlfile.To Reproduce
Steps to reproduce the behavior:
tool.pdm.resolution.overridestosphinx<7andproject.dependenciestosphinx>7.sphinx==6.2.1will be locked by pdmpdm buildpip install mypkg[locked]- will yieldResolutionImpossibleDesired behavior
pdm buildshall be aborted with an error stating that the locked dependency is incompatible withproject.dependencies