Skip to content

Commit 3c8fab6

Browse files
authored
Merge pull request #49 from LeanderCS/47
47 | Update publish workflow to include .whl
2 parents cf134b0 + e51b839 commit 3c8fab6

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/publish-to-pypi.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ ubuntu-latest, windows-latest, macos-latest ]
17+
os: [ windows-latest, macos-latest ] #ubuntu-latest,
1818
python: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
1919
exclude:
2020
- os: windows-latest
@@ -23,8 +23,8 @@ jobs:
2323
python: "3.8"
2424
- os: macos-latest
2525
python: "3.7"
26-
- os: ubuntu-latest
27-
python: "3.7"
26+
#- os: ubuntu-latest
27+
# python: "3.7"
2828

2929
steps:
3030
- uses: actions/checkout@v4
@@ -46,11 +46,15 @@ jobs:
4646
python-version: ${{ matrix.python }}
4747

4848
- name: Install build tools
49-
run: pip install build twine wheel
49+
run: pip install build twine wheel auditwheel
5050

5151
- name: Build wheel
5252
run: python -m build --wheel
5353

54+
- name: Repair the wheel for manylinux compatibility
55+
if: ${{ runner.os == 'Linux' }}
56+
run: auditwheel repair dist/*.whl -w dist/
57+
5458
- name: Upload built packages
5559
uses: actions/upload-artifact@v4
5660
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "cython"]
2+
requires = ["setuptools>=42", "wheel", "cython>=3.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]

0 commit comments

Comments
 (0)