Open
Description
Environment
- pip version: master
- Python version: any
- OS: any
Description
We want to add tests, for --platform
's behavior with the new resolver (see #8349 (comment) for details on why this is needed).
The cases, as mentioned by @uranusjr (omitting the --unstable-feature=resolver
), which will be needed in the actual tests, are:
# Install a wheel from a direct URL with non-host platform.
pip install --platform=fakeplat /wheelhouse/foo-1.0-py3-none-fakeplat.whl
# Install a wheel from a find-links page with non-host platform.
pip install --platform=fakeplat --find-links=./path/to/wheelhouse foo==1.0
# Install a wheel into a target directory from a direct URL with non-host platform.
pip install --platform=fakeplat --target=./target path/to/wheelhouse/foo-1.0-py3-none-fakeplat.whl
# Install a wheel into a target directory from a find-links page with non-host platform.
pip install --platform=fakeplat --target=./target --find-links=./path/to/wheelhouse foo==1.0
Also relevant is @pfmoore's note that:
we'd have to skip for the old resolver - presumably using something like
if not use_new_resolver: pytest.xfail("Old resolver is broken")