File tree Expand file tree Collapse file tree 4 files changed +207
-198
lines changed
Expand file tree Collapse file tree 4 files changed +207
-198
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ Usage:
1818``` bash
1919curl https://raw.githubusercontent.com/waketzheng/carstino/main/pip_conf.py| python
2020```
21+ Or use uvx:
22+ ```
23+ uvx pip-conf-mirror --pip
24+ ```
2125Or install ` pip_conf.py ` by pip/pipx:
2226``` bash
2327pip install --user pip-conf-mirror
@@ -29,10 +33,10 @@ pip install --user pip-conf-mirror
2933# pip install --user "pip-conf-mirror @git+https://github.com/waketzheng/carstino"
3034
3135# Set pip mirror
32- pip-conf
36+ pip-conf-mirror
3337
3438# Set pip mirror to qinghua source
35- # pip-conf qh
39+ # pip-conf-mirror qh
3640```
3741
3842- Change apt source of ubuntu16/18/19/20/22/24 to tencent cloud.
Original file line number Diff line number Diff line change @@ -63,9 +63,14 @@ lock *args:
6363 if (-Not (Test-Path ' ~/AppData/Roaming/uv/tools/rust-just' )) { echo ' Using pdm ...' ; pdm lock -G :all {{ args }} } else { echo ' uv lock...' ; just uv_lock {{ args }} }
6464
6565
66- up :
67- @ just lock --upgrade
66+ [unix ]
67+ up * args :
68+ @ just uv_lock --upgrade {{ args}}
6869 @ if test -e pdm.lock; then pdm update -G :all --no-sync; fi
70+ [windows ]
71+ up * args :
72+ if (-Not (Test-Path ' ~/AppData/Roaming/uv/tools/rust-just' )) { echo ' Using pdm ...' ; pdm update -G :all {{ args }} } else { echo ' uv lock...' ; just uv_lock {{ args }} }
73+ if (Test-Path ' pdm.lock' ) { pdm update -G :all --no-sync }
6974
7075uv_clear * args :
7176 {{ UV_DEPS }} {{ args}}
@@ -122,8 +127,8 @@ pipi *args: venv
122127pipi * args : venv
123128 @ if (-Not (Test-Path ' .venv/Scripts/pip.exe' )) { UV_PIP_I {{ args}} } else { @just run pip install {{ args}} }
124129
125- install_me :
126- @ just pipi -e .
130+ install_me * args :
131+ @ just pipi -e . {{ args }}
127132
128133start :
129134 pre-commit install
You can’t perform that action at this time.
0 commit comments