Metadata-Version: 2.3
Name: pip-is-uv
Version: 0.1.0
Summary: Stub package to replace pip with uv pip in a virtual environment
License: MIT License
         
         Copyright (c) 2026 Jack Rosenthal
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pip-is-uv

Stub package that replaces `pip` with [`uv pip`](https://docs.astral.sh/uv/pip/) inside a virtual environment.  All invocation paths are intercepted:

- `pip` / `pip3` scripts
- `python -m pip`
- `import pip; pip.main(...)` (legacy API)

## Requirements

[uv](https://docs.astral.sh/uv/) must be installed and available on `PATH`, or present in the same `bin/` directory as the Python interpreter (e.g., `uv` installed into the venv alongside this package).

## How it works

`pip-is-uv` installs a `pip` Python package that shadows the real pip.  When any pip entry point is invoked, it locates the `uv` binary and calls `uv pip` with all arguments passed through unchanged, replacing the current process (`execvp` on Unix, subprocess on Windows).

## Limitations

- Commands not supported by `uv pip` (e.g., `pip wheel`, `pip hash`) will fail with an error from uv.
- `uv` must be installed separately; this package does not depend on it.
