Skip to content

Commit e2b7ccf

Browse files
authored
feat: use uv instead of poetry in util.sh (#679)
* feat: use uv instead of poetry in util.sh
1 parent 39da05c commit e2b7ccf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

util.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ clone() {
1010
repo=$(echo $line | cut -f1 -d" " | sed 's/https:\/\//git@/' | sed 's/\//:/')
1111
id=$(echo $line | cut -f2 -d" ")
1212
git clone $repo $id
13-
if command -v poetry &> /dev/null
13+
if command -v uv &> /dev/null
1414
then
15-
poetry env use python3.10
16-
poetry lock
17-
poetry install
15+
uv venv python3.10 --clear
16+
uv sync
1817
npm install
1918
fi
2019
done
@@ -30,11 +29,10 @@ pull() {
3029
id=$(echo $line | cut -f2 -d" ")
3130
cd $id
3231
git pull
33-
if command -v poetry && command -v npm &> /dev/null
32+
if command -v uv && command -v npm &> /dev/null
3433
then
35-
poetry env use python3.10
36-
poetry lock
37-
poetry install
34+
uv venv python3.10 --clear
35+
uv sync
3836
npm install
3937
fi
4038
cd ..

0 commit comments

Comments
 (0)