astral-sh / packse

Python packaging scenarios
Apache License 2.0
93 stars 9 forks source link

add initial support for universal resolver tests #180

Closed BurntSushi closed 2 months ago

BurntSushi commented 2 months ago

This adds resolve_options.universal to the packse schema, as well as an initial set of tests for the universal resolver.

BurntSushi commented 2 months ago

Also, one thing that isn't done here is updating the expected format. In the "universal" world, the expected format is no longer just Map<Name, Version>, but more like... Map<Name, [(Version, Marker)]>. The latter is thankfully something that can subsume the former, but I wasn't 100% sure we want to go that route here. And in particular, the latter representation is only desirable when resolver_options.universal is true.