njzjz / replace-pip-with-uv-pip

Replace pip with uv pip.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace pip with uv pip

PyPI

A simple script to replace pip with uv pip. Note that pip and uv pip have many differences.

Although pip maintainers are strongly against providing pip -> uv pip alias, it's still valuable in several use cases, especially in the CI service (see below).

Use cases

cibuildwheel

When using cibuildwheel, the hardcoded pip install is called when testing a wheel. There is no way to replace pip install with uv pip install on the user side. Installing replace-pip-with-uv-pip is a workaround:

# in pyproject.toml:
[tool.cibuildwheel]
before-test = ["python -m pip install replace-pip-with-uv-pip"]

About

Replace pip with uv pip.


Languages

Language:Python 100.0%