- Set mirror for pip
mkdir ~/archives
cd ~/archives
git clone https://github.com/waketzheng/carstino
cd carstino
python pip_conf.py --pip
- Install pipx
pip install --user pipx
pipx ensurepath
export PATH=$PATH:$HOME/.local/bin # 或关闭终端后重新打开
- Install uv and set mirror for it
pipx install uv
python ~/archives/carstino/pip_conf.py --uv
- install pdm and set mirror for it
uv tool install pdm
uvx pip-conf-mirror --pdm
- Install other tools by uv
uv tool install ruff
uv tool install pre-commit
- Install supervisor (Optional)
uv tool install "supervisor @git+ssh://git@github.com/waketzheng/supervisor"
# 或:
#uv tool install "supervisor @git+https://github.com/waketzheng/supervisor"
- Example for uvx + github URL
uvx "coveralls @ git+https://github.com/waketzheng/coveralls-python" --service=github --finish
- Install plugin for poetry
cd ~/.local/share/uv/tools/poetry
ve
uv pip install poetry-plugin-version poetry-plugin-pypi-mirror poetry-plugin-i