Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Commit 414a4a0

Browse files
committed
up
1 parent 8aad8bf commit 414a4a0

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

.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: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ license = { text = "MIT" }
1717
[project.urls]
1818
homepage = "https://github.com/lgc-NB2Dev/nonebot-plugin-autoreply"
1919

20-
[tool.pdm.build]
21-
includes = []
20+
[build-system]
21+
requires = ["hatchling"]
22+
build-backend = "hatchling.build"
2223

23-
[tool.pdm.version]
24-
source = "file"
24+
[tool.hatch.version]
2525
path = "nonebot_plugin_autoreply/__init__.py"
26-
27-
[build-system]
28-
requires = ["pdm-backend"]
29-
build-backend = "pdm.backend"

0 commit comments

Comments
 (0)