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

Consolidate UnusableDependencies into a generic Unavailable incompatibility #1088

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jan 25, 2024

Requires astral-sh/pubgrub#20

In short, UnusableDependencies can be generalized into Unavailable which encompasses incompatibilities where a package range which is unusable for some inherent reason as well as when its dependencies are unusable. We can eventually use this to track more incompatibilities in the solver. I made the reason string required because I can't see a case where we should leave it out.

Additionally, this improves the display of conflicts in the root requirements.

@zanieb zanieb added internal A refactor or improvement that is not user-facing error messages Messaging when something goes wrong labels Jan 25, 2024
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent.

@zanieb zanieb merged commit ed1ac64 into main Jan 25, 2024
3 checks passed
@zanieb zanieb deleted the zb/unavailable branch January 25, 2024 04:10
@zanieb
Copy link
Member Author

zanieb commented Jan 25, 2024

Oops, @charliermarsh / @konstin can one one of you review the PubGrub pull request too and I'll merge and follow up with an update to the pin here?

@charliermarsh
Copy link
Member

Yeah

zanieb added a commit that referenced this pull request Jan 25, 2024
Just fixing the wrong merge order from
#1088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants