Skip to content

Commit 9b93fe3

Browse files
committed
chore: upgrade deps and update readme/justfile
1 parent 0b50bcc commit 9b93fe3

File tree

4 files changed

+207
-198
lines changed

4 files changed

+207
-198
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Usage:
1818
```bash
1919
curl https://raw.githubusercontent.com/waketzheng/carstino/main/pip_conf.py|python
2020
```
21+
Or use uvx:
22+
```
23+
uvx pip-conf-mirror --pip
24+
```
2125
Or install `pip_conf.py` by pip/pipx:
2226
```bash
2327
pip 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.

justfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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

7075
uv_clear *args:
7176
{{ UV_DEPS }} {{args}}
@@ -122,8 +127,8 @@ pipi *args: venv
122127
pipi *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

128133
start:
129134
pre-commit install

0 commit comments

Comments
 (0)