Prepare python tools: uv/pdm/...

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