uv/crates/puffin-resolver
Zanie Blue 2bb04771ce
Allow switching out the resolver's IO (#517)
I'm working off of @konstin's commit here to implement arbitrary unsat
test cases for the resolver.

The entirety of the resolver's io are two functions: Get the version map
for a package (PEP 440 version -> distribution) and get the metadata for
a distribution. A new trait `ResolverProvider` abstracts these two away and
allows replacing the real network requests e.g. with stored responses
(https://github.com/pradyunsg/pip-resolver-benchmarks/blob/main/scenarios/pyrax_198.json).

---------

Co-authored-by: konsti <konstin@mailbox.org>
2023-12-06 11:53:16 -06:00
..
src Allow switching out the resolver's IO (#517) 2023-12-06 11:53:16 -06:00
tests Introduce Cache, CacheBucket and CacheEntry (#507) 2023-11-28 17:11:14 +00:00
Cargo.toml Migrate interpreter query to custom caching (#508) 2023-11-28 17:14:59 +00:00