Skip to content

fix(pdm): Ignore some dependencies with markers that are not met by any target enviroment#146

Open
gfringeli wants to merge 1 commit intojvolkman:mainfrom
gfringeli:fix/pdm/unmet-markers-for-any-target
Open

fix(pdm): Ignore some dependencies with markers that are not met by any target enviroment#146
gfringeli wants to merge 1 commit intojvolkman:mainfrom
gfringeli:fix/pdm/unmet-markers-for-any-target

Conversation

@gfringeli
Copy link
Contributor

Idea to improve (not perfectly solve) the situation described in #115.

…ny target enviroment under the assumption that pdm creates consistent lock files
@gfringeli gfringeli force-pushed the fix/pdm/unmet-markers-for-any-target branch from e7e5257 to 087f793 Compare April 5, 2025 15:33
@burnpanck
Copy link

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.

@cwill747
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

3 participants