Skip to content

Commit 4362852

Browse files
committed
Switch publish workflow to use standard Python setup
Using actions/setup-python instead of uv for PyPI publishing to avoid externally managed Python issues
1 parent 1c4c85b commit 4362852

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Install uv
15-
uses: astral-sh/setup-uv@v4
16-
1714
- name: Set up Python
18-
run: uv python install 3.11
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build twine
1923
2024
- name: Build package
21-
run: uv build
25+
run: python -m build
2226

2327
- name: Check package
24-
run: |
25-
uv pip install --system twine
26-
twine check dist/*
28+
run: twine check dist/*
2729

2830
- name: Publish to PyPI
2931
env:
3032
TWINE_USERNAME: __token__
3133
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
32-
run: |
33-
twine upload dist/*
34+
run: twine upload dist/*

0 commit comments

Comments
 (0)