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

Avoid preferring constrained over unconstrained packages #3148

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Apr 19, 2024

Summary

pip prefers somewhat-constrained over unconstrained packages... but only if they're at equal depths in the tree. We don't have a way to track the latter property yet (I've added a TODO), so for now, we should remove this constraint -- it seems to be counter-productive.

I've filed #3149 as a follow-up.

Closes #3143

Test Plan

  • git clone https://github.com/drivendataorg/zamba.git
  • cat "-e .[tests]" > req.in
  • cargo run venv && cargo run pip compile req.in --refresh -n --python-platform linux --python-version 3.8

@charliermarsh charliermarsh added the bug Something isn't working label Apr 19, 2024
@charliermarsh charliermarsh marked this pull request as ready for review April 19, 2024 23:16
@charliermarsh charliermarsh enabled auto-merge (squash) April 19, 2024 23:17
@charliermarsh charliermarsh merged commit fda378f into main Apr 19, 2024
38 checks passed
@charliermarsh charliermarsh deleted the charlie/prio branch April 19, 2024 23:30
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.

Recent uv dependency resolution installs older version of package
1 participant