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

Add a method to retrieve unchanging terms for a package #32

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Oct 16, 2024

When prefetching, we want to avoid prefetching packages we will certainly reject. PartialSolution::unchanging_term_for_package returns the terms from root that a certain independent from the current partial solution. See pubgrub-rs#263 (comment)

When prefetching, we want to avoid prefetching packages we will certainly reject. `PartialSolution::unchanging_term_for_package` returns the terms from root that a certain independent from the current partial solution. See pubgrub-rs#263 (comment)
@konstin konstin added the enhancement New feature or request label Oct 16, 2024
konstin added a commit to astral-sh/uv that referenced this pull request Oct 16, 2024
When batch prefetching we can fetch versions we know that are incompatible. In the following example, we were prefetching sentry-kafka-schemas below version 1.50.0.

```
python-rapidjson<=1.20,>=1.4
sentry-kafka-schemas<=0.1.113,>=0.1.50
```

Using a new pubgrub interface from astral-sh/pubgrub#32, we can avoid those prefetches by asking for incompatibilities that won't change anymore (those with root).
@konstin konstin merged commit 7243f4f into main Oct 17, 2024
4 checks passed
@konstin konstin deleted the konsti/unchanging_term_for_package branch October 17, 2024 09:43
konstin added a commit to astral-sh/uv that referenced this pull request Oct 17, 2024
When batch prefetching we can fetch versions we know that are incompatible. In the following example, we were prefetching sentry-kafka-schemas below version 1.50.0.

```
python-rapidjson<=1.20,>=1.4
sentry-kafka-schemas<=0.1.113,>=0.1.50
```

Using a new pubgrub interface from astral-sh/pubgrub#32, we can avoid those prefetches by asking for incompatibilities that won't change anymore (those with root).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants