uv/crates/puffin-cli/tests
Charlie Marsh fd556ccd44
Model Python version as a PubGrub package (#745)
## Summary

This PR modifies the resolver to treat the Python version as a package,
which allows for better error messages (since we no longer treat
incompatible packages as if they "don't exist at all").

There are a few tricky pieces here...

First, we need to track both the interpreter's Python version and the
_target_ Python version, because we support resolving for other versions
via `--python 3.7`.

Second, we allow using incompatible wheels during resolution, as long as
there's a compatible source distribution. So we still need to test for
`requires-python` compatibility when selecting distributions.

This could use more testing, but it feels like an area where `packse`
would be more productive than writing PyPI tests.

Closes https://github.com/astral-sh/puffin/issues/406.
2024-01-03 15:20:45 +00:00
..
common Show fully-resolved URLs in non-resolution contexts (#689) 2023-12-18 22:10:24 +00:00
add.rs Inline all snapshot files (#641) 2023-12-14 00:35:38 +00:00
pip_compile.rs Model Python version as a PubGrub package (#745) 2024-01-03 15:20:45 +00:00
pip_install.rs Model Python version as a PubGrub package (#745) 2024-01-03 15:20:45 +00:00
pip_sync.rs Don't install incompatible path and url wheels (#739) 2024-01-02 15:00:50 +00:00
pip_uninstall.rs Show URLs and version together for installed, URL-based dependencies (#690) 2023-12-18 22:21:37 +00:00
remove.rs Inline all snapshot files (#641) 2023-12-14 00:35:38 +00:00
venv.rs Inline all snapshot files (#641) 2023-12-14 00:35:38 +00:00