Skip to content

Commit 046e07a

Browse files
committed
🔨 替换掉所有 poetry 相关配置
1 parent 0273faa commit 046e07a

File tree

5 files changed

+8
-33
lines changed

5 files changed

+8
-33
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
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": {

.github/actions/setup-python/action.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
@@ -29,8 +29,7 @@ jobs:
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

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
paths:
99
- "nonebot/**"
1010
- "codegen/**"
11-
- "poetry.lock"
11+
- "uv.lock"
1212
- "pyproject.toml"
1313

1414
jobs:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _✨ GitHub 协议适配 ✨_
4545
## 安装
4646

4747
```bash
48-
poetry add nonebot-adapter-github
48+
uv add nonebot-adapter-github
4949
# 或者
5050
pip install nonebot-adapter-github
5151
```

0 commit comments

Comments
 (0)