Skip to content

Commit 79ea561

Browse files
committed
Build anyhost distribution based on managed code
1 parent a6fede8 commit 79ea561

2 files changed

Lines changed: 4 additions & 20 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-latest, windows-latest, macos-latest]
18+
os: ubuntu-latest
1919
python-version: ["3.11"]
2020
steps:
2121
- name: Checkout repo with submodules
@@ -38,12 +38,6 @@ jobs:
3838
git reset --hard origin/main
3939
popd
4040
41-
- name: Install .NET 8 (Windows only)
42-
if: matrix.os == 'windows-latest'
43-
uses: actions/setup-dotnet@v3
44-
with:
45-
dotnet-version: '8.0.x'
46-
4741
- name: Install uv and set the python version
4842
uses: astral-sh/setup-uv@v5
4943
with:
@@ -58,18 +52,8 @@ jobs:
5852
- name: Run tests
5953
run: uv run pytest
6054

61-
- name: Build source distribution (Linux only)
62-
if: matrix.os == 'ubuntu-latest'
63-
run: uv build --sdist
64-
65-
- name: Build binary wheel
66-
run: uv build --wheel
67-
68-
- name: Relabel Linux wheel for PyPI
69-
if: matrix.os == 'ubuntu-latest'
70-
run: |
71-
pip install auditwheel
72-
auditwheel repair dist/*.whl -w dist/
55+
- name: Build distribution
56+
run: uv build
7357

7458
- name: Publish to PyPI
7559
run: uv publish

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ def run(self) -> None:
7777
"build_py": build_py,
7878
},
7979
# Force platform-specific wheels
80-
has_ext_modules=lambda: True,
80+
# has_ext_modules=lambda: True,
8181
)

0 commit comments

Comments
 (0)