Skip to content

Commit 4be28e8

Browse files
authored
feat: distribute future-compatible python wheels (#178)
resolves #177
1 parent 77a447e commit 4be28e8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/python-packaging.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,14 @@ jobs:
183183
pattern: wheels-*
184184
path: dist
185185
merge-multiple: true
186-
- name: Install uv
186+
- name: Setup Python
187187
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
188-
uses: astral-sh/setup-uv@v6
188+
uses: actions/setup-python@v5
189+
with:
190+
python-version: 3.x
189191
- name: Check distributions
190192
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
191-
run: uvx twine check dist/*
193+
run: pipx run twine check dist/*
192194
- name: Publish to PyPI
193195
if: startsWith(github.ref, 'refs/tags/')
194196
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc

bindings/python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ crate-type = ["cdylib"]
1717
bench = false
1818

1919
[dependencies]
20-
pyo3 = { version = "0.26.0", features = ["extension-module"] }
20+
pyo3 = { version = "0.26.0", features = ["extension-module", "abi3-py39"] }
2121
cpp-linter = { path = "../../cpp-linter" }
2222
tokio = "1.47.1"
2323

cspell.config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ words:
7070
- patchelf
7171
- peaceiris
7272
- peekable
73+
- pipx
7374
- pkgs
7475
- posargs
7576
- positionals

0 commit comments

Comments
 (0)