prefix-dev / rip

Solve and install Python packages quickly with rip (pip in Rust)
https://prefix.dev
BSD 3-Clause "New" or "Revised" License
643 stars 21 forks source link

refactor: simplify `Wheel` API #231

Closed baszalmstra closed 6 months ago

baszalmstra commented 6 months ago

This PR is in preparation of introducing cached wheels that are not zips. The Wheel struct has a lot of responsibilities (installing, metadata, lazy metadata, vitals), I wanted to simplify it so that it represents just a zipped .whl file.

I changed the API by moving a lot of the functionality associated with wheels out of Wheel and into their own functions.