Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolution.overrides may lead to an incompatible locked group being published #8

Open
sigma67 opened this issue Feb 19, 2024 · 0 comments

Comments

@sigma67
Copy link
Collaborator

sigma67 commented Feb 19, 2024

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:

  1. Set i.e. tool.pdm.resolution.overrides to sphinx<7 and project.dependencies to sphinx>7.
  2. sphinx==6.2.1 will be locked by pdm
  3. build the wheel using pdm build
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant