Skip to content

Commit 575bb85

Browse files
committed
up
1 parent f38681e commit 575bb85

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build-n-publish:
10-
name: Use PDM to Build and publish Python 🐍 distributions 📦 to PyPI
10+
name: Use uv to Build and publish Python 🐍 distributions 📦 to PyPI
1111
runs-on: ubuntu-latest
1212

1313
permissions:
@@ -20,8 +20,15 @@ jobs:
2020
with:
2121
submodules: true
2222

23-
- name: Setup PDM
24-
uses: pdm-project/setup-pdm@v3
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
25+
26+
- name: 'Set up Python'
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version-file: 'pyproject.toml'
2530

2631
- name: Build and Publish distribution 📦 to PyPI
27-
run: pdm publish
32+
run: |
33+
uv build
34+
uv publish

pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@ all = ["nonebot-plugin-picmenu-next[yaml,toml]"]
3131
dev = []
3232

3333
[build-system]
34-
requires = ["pdm-backend"]
35-
build-backend = "pdm.backend"
34+
requires = ["hatchling"]
35+
build-backend = "hatchling.build"
3636

37-
[tool.pdm.build]
38-
includes = []
39-
40-
[tool.pdm.version]
41-
source = "file"
37+
[tool.hatch.version]
4238
path = "nonebot_plugin_picmenu_next/__init__.py"

0 commit comments

Comments
 (0)