File tree Expand file tree Collapse file tree 5 files changed +8
-33
lines changed
Expand file tree Collapse file tree 5 files changed +8
-33
lines changed Original file line number Diff line number Diff line change 22 "name" : " Default Linux Universal" ,
33 "image" : " mcr.microsoft.com/devcontainers/universal:2-linux" ,
44 "features" : {
5- "ghcr.io/devcontainers-contrib/ features/poetry:2 " : {}
5+ "ghcr.io/jsburckhardt/devcontainer- features/uv:1 " : {}
66 },
7- "postCreateCommand" : " poetry config virtualenvs.in-project true && poetry install && poetry run pre-commit install" ,
7+ "postCreateCommand" : " uv sync && uv run pre-commit install" ,
88 "customizations" : {
99 "vscode" : {
1010 "settings" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v5
1616
17- - name : Setup Python environment
18- uses : ./.github/actions/ setup-python
17+ - name : Install the latest version of uv
18+ uses : astral-sh/ setup-uv@v7
1919
2020 - name : Get Version
2121 id : version
2222 run : |
23- echo "VERSION=$(poetry version -s )" >> $GITHUB_OUTPUT
23+ echo "VERSION=$(uv version --short )" >> $GITHUB_OUTPUT
2424 echo "TAG_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
2525 echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
2626
2929 run : exit 1
3030
3131 - name : Build Package
32- run : |
33- poetry build
32+ run : uv build
3433
3534 - name : Publish package to PyPI
3635 uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 88 paths :
99 - " nonebot/**"
1010 - " codegen/**"
11- - " poetry .lock"
11+ - " uv .lock"
1212 - " pyproject.toml"
1313
1414jobs :
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ _✨ GitHub 协议适配 ✨_
4545## 安装
4646
4747``` bash
48- poetry add nonebot-adapter-github
48+ uv add nonebot-adapter-github
4949# 或者
5050pip install nonebot-adapter-github
5151```
You can’t perform that action at this time.
0 commit comments