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

Order resolution preference by command ordering #9426

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Jan 4, 2021

Fix #9316. The order requirements are specified from the command line (and requirements files) are now carried into the provider, and used to determine preferences. Non-user-specified requirements have float('inf'), i.e. always resolved after user-specified requiremenets.

I’m intentionally omitting a news fragment so this change does not show up in the release notes. Otherwise users may (incorrectly) assume this is actually a guarenteed behaviour.

@uranusjr uranusjr force-pushed the new-resolver-resolve-user-order branch from 463f42b to 0866bfa Compare January 4, 2021 05:46
@pfmoore pfmoore added the skip news Does not need a NEWS file entry (eg: trivial changes) label Jan 4, 2021
@pfmoore
Copy link
Member

pfmoore commented Jan 4, 2021

You do know you can add a "trivial" label to satisfy the CI check for a news item?

@pradyunsg
Copy link
Member

FWIW, .trivial files with some content also work. Only empty ones would fail.

@pfmoore
Copy link
Member

pfmoore commented Jan 4, 2021

Why do empty ones fail? Is that this CI bug I've been seeing people comment on?

@pradyunsg
Copy link
Member

Yes. pypa/browntruck#24

@uranusjr uranusjr merged commit 8d5832b into pypa:master Feb 18, 2021
@uranusjr uranusjr deleted the new-resolver-resolve-user-order branch February 18, 2021 15:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve/install user-requested packages in the same order the user requests them
3 participants