Skip to content

Commit b708570

Browse files
committed
Adjust publishing workflow
1 parent 86be1f8 commit b708570

3 files changed

Lines changed: 24 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@
22
#
33
# SPDX-License-Identifier: ISC
44

5-
65
name: Release
76

87
on:
98
push:
109
tags:
11-
- 'v*'
10+
- "v*"
1211

1312
jobs:
1413
release:
1514
runs-on: ubuntu-latest
1615
environment: release
1716

1817
steps:
19-
- uses: actions/checkout@v6
20-
- uses: actions/setup-python@v6
21-
with:
22-
python-version: '3.13'
23-
- run: make pip
24-
- run: make dist
25-
- run: make publish
26-
env:
27-
TWINE_USERNAME: __token__
28-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-python@v6
20+
with:
21+
python-version: "3.13"
22+
- run: sudo apt-get install -y patchelf
23+
- run: make pip
24+
- run: make publish
25+
env:
26+
TWINE_USERNAME: __token__
27+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@ build:
4848
dist:
4949
python -m build
5050

51-
publish:
51+
repair-wheels:
52+
python -m pip install --upgrade auditwheel
53+
auditwheel repair dist/*.whl -w dist/repaired
54+
rm -f dist/*.whl
55+
mv dist/repaired/*.whl dist/
56+
rm -rf dist/repaired
57+
58+
publish: dist repair-wheels
59+
python -m pip install --upgrade twine
5260
python -m twine upload dist/*
5361

5462
docs-serve:

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ Issues = "https://github.com/alganet/apywire/issues"
3434

3535
[project.optional-dependencies]
3636
dev = [
37+
"auditwheel",
3738
"black",
3839
"build",
3940
"coverage",
4041
"Cython",
41-
"flake8",
4242
"flake8-pyproject",
43+
"flake8",
4344
"isort",
44-
"mkdocs",
45+
"mkdocs-autorefs",
4546
"mkdocs-material",
47+
"mkdocs",
4648
"mkdocstrings[python]",
47-
"mkdocs-autorefs",
4849
"mypy",
4950
"pytest-cov",
5051
"pytest",

0 commit comments

Comments
 (0)