uv/crates/puffin-cli/tests
Charlie Marsh e71e3e8dd1
Refresh `BuildDispatch` when running pip install with `--reinstall` (#933)
## Summary

This fixes an extremely subtle bug in `pip install --reinstall`, whereby
if you depend on `setuptools` at the top level, we end up uninstalling
it after resolving, which breaks some cached state. If we have
`--reinstall`, we need to reset that cached state between resolving and
installing.

## Test Plan

Running `pip install --reinstall` with:

```txt
setuptools
devpi @ e334eb4dc9bb023329e4b610e4515b/devpi-2.2.0.tar.gz
```

Fails on `main`, but passes.
2024-01-15 18:56:18 +00:00
..
common Update scenario tests to include `requires-python` coverage (#769) 2024-01-04 14:15:13 -06:00
add.rs Inline all snapshot files (#641) 2023-12-14 00:35:38 +00:00
pip_compile.rs Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
pip_install.rs Refresh `BuildDispatch` when running pip install with `--reinstall` (#933) 2024-01-15 18:56:18 +00:00
pip_install_scenarios.rs Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
pip_sync.rs Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
pip_uninstall.rs Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
remove.rs Inline all snapshot files (#641) 2023-12-14 00:35:38 +00:00
venv.rs Add `--seed` flag to `venv` to allow seed package environments (#865) 2024-01-09 20:45:56 -05:00