You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a dep is not required by the current python version, pdm translator raises an exception.
MismatchedVersionException: Found no packages to satisfy dependency (name=exceptiongroup, spec=>=1.0.2)
pdm.lock includes "exceptiongroup>=1.0.2; python_version < \"3.11\"", - which means it's not needed. See the below for whole contents of pyproject / pdm / poetry lock files.
Probably.. pdm should not include the dependencies as require-python version (> 3.12.4) won't need the dep anyway?
Please note that I could use poetry.lock without issues (which does not include the extra dep)
Yeah, this is new with pdm's deprecation of the cross_platform strategy in favor of a list of defined lock targets. You'll now see something like this in your pdm.lock
I believe this is the model for these targets entries - it's more than just requires_python. My understanding is that pdm_translator needs logic to test listed dependencies against these targets and discard items that don't match.
I started work a while ago but didn't get very far and don't have the time to finish it at the moment. So PRs welcome, if you're willing!
When a dep is not required by the current python version, pdm translator raises an exception.
pdm.lock
includes"exceptiongroup>=1.0.2; python_version < \"3.11\"",
- which means it's not needed. See the below for whole contents of pyproject / pdm / poetry lock files.Probably.. pdm should not include the dependencies as require-python version (> 3.12.4) won't need the dep anyway?
Please note that I could use poetry.lock without issues (which does not include the extra dep)
BUILD
pyproject.toml
pdm.lock
poetry.lock
The text was updated successfully, but these errors were encountered: