uv/scripts/packages/fake-uv
Zanie Blue 278295ef02
Add test cases for `find_uv_bin` (#15110)
Adds test cases to unblock

- https://github.com/astral-sh/uv/pull/14181
- https://github.com/astral-sh/uv/pull/14182
- https://github.com/astral-sh/uv/pull/14184
- https://github.com/astral-sh/uv/pull/14184
- https://github.com/tox-dev/pre-commit-uv/issues/70

We use a package with a symlink to the Python module to get a mock
installation of uv without building (or packaging) the uv binary. This
lets us test real patterns like `uv pip install --prefix` without
encoding logic about where things are placed during those installs.

---------

Co-authored-by: konstin <konstin@mailbox.org>
2025-08-07 07:14:01 -05:00
..
scripts Add test cases for `find_uv_bin` (#15110) 2025-08-07 07:14:01 -05:00
README.md Add test cases for `find_uv_bin` (#15110) 2025-08-07 07:14:01 -05:00
pyproject.toml Add test cases for `find_uv_bin` (#15110) 2025-08-07 07:14:01 -05:00
src Add test cases for `find_uv_bin` (#15110) 2025-08-07 07:14:01 -05:00

README.md

This fake uv package symlinks the Python module of uv in-tree and has a fake uv binary, allowing testing of the Python module behaviors. Consumers can replace the uv binary with a debug binary or similar if they need it to actually work.