Skip to content

Commit a3dbbf7

Browse files
committed
migrate pypi publishing to uv
1 parent dcdf230 commit a3dbbf7

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

.github/workflows/release.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,13 @@ jobs:
3535
with:
3636
persist-credentials: false
3737
fetch-depth: 0
38-
- uses: actions/setup-python@v5
39-
with:
40-
python-version: "3.12"
4138
- uses: actions/setup-go@v5
4239
with:
4340
go-version: stable
4441
cache: false
45-
- name: Install deps
46-
run: >-
47-
python -m pip install --upgrade pip &&
48-
pip install twine==5.1.1 build==1.2.2.post1 setuptools-scm==8.1.0
42+
- name: Install the latest version of uv
43+
uses: astral-sh/setup-uv@v5
4944
- name: Build
50-
run: python -m build --wheel
45+
run: uv build --wheel
5146
- name: Upload
52-
run: twine upload dist/*
53-
env:
54-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
55-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
47+
run: uv publish

pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=64", "setuptools_scm>=8"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.py

-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,5 @@ def run(self):
4545
"License :: OSI Approved :: MIT License",
4646
"Operating System :: OS Independent",
4747
],
48-
use_scm_version=True,
49-
setup_requires=["setuptools>=42", "setuptools_scm"],
5048
python_requires=">=3.6",
5149
)

0 commit comments

Comments
 (0)