rules_pycross
rules_pycross copied to clipboard
fix(pdm): Ignore some dependencies with markers that are not met by any target enviroment
Idea to improve (not perfectly solve) the situation described in #115.
I think this solution is reasonable: Under the assumption that the provided PDM lockfile is "correct", then any such missing dependency must be due to the dependency not being needed. At least under this assumption, the raised exception is exclusively triggering false positives, so removing it strictly improves the situation.
This fixes a problem I have too with pytest having an optional dep on Python <3.11. I agree this is reasonable given that we should assume PDM lockfiles are correct, as @burnpanck said.