Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Ensure the local_pypi fixtures works with uv, too
The local_pypi fixture is used in tests to provide a reproducible package installation environment, i.e. without _actually_ fetching packages from PyPI. This is done for `pip install` by setting a couple of `PIP_*` environment variables that forces `pip` to only look at a local directory of package files. However, the new `uv pip install` method does not obey the same environment variables. To configure the same for `uv` we need to write a TOML configuration file and point `uv` to this via `UV_CONFIG_FILE` (because corresponding `UV_NO_INDEX` and `UV_FIND_LINKS` environment variables does not yet exist, see astral-sh/uv#1789 for details). We setup a temporary file containing this TOML config for `uv` and make sure it is automatically deleted after the test is run.
- Loading branch information