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

Allow repeated dependencies when installing #1558

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

It turns out that it's not uncommon to end up with repeated packages in requirements files when running pip-sync, e.g., you might have anyio==4.0.0 specified multiple times. This PR relaxes our assertions in the install plan to allow such repeated packages, as long as the requirement markers are exactly the same (i.e., they are truly duplicates).

Closes #1552.

@charliermarsh charliermarsh enabled auto-merge (squash) February 17, 2024 01:30
@charliermarsh charliermarsh merged commit f897ee3 into main Feb 17, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/conflict branch February 17, 2024 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow duplicates of the same version of the same package
1 participant