Skip to content

Commit 591ca1d

Browse files
committed
Upgrade cibuildwheel to 3.0.0
Switch to GitHub actions and remove outdated actions Enable PyPy wheels explicitly, required by latest cibuildwheel
1 parent 03fbcaa commit 591ca1d

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -233,23 +233,10 @@ jobs:
233233
- uses: actions/checkout@v4
234234
with:
235235
fetch-depth: ${{ env.git-depth }}
236-
- name: Set up QEMU
237-
if: ${{ matrix.arch == 'aarch64' }}
238-
uses: docker/setup-qemu-action@v3
239236
- name: Checkout submodules
240-
run: |
241-
git submodule update --init --recursive --depth 1
242-
- name: Set up Python
243-
uses: actions/setup-python@v5
244-
with:
245-
python-version: "3.x"
246-
- name: Install Python dependencies
247-
run: |
248-
python -m pip install --upgrade pip
249-
pip install cibuildwheel==2.23.3
237+
run: git submodule update --init --recursive --depth 1
250238
- name: Build wheels
251-
run: |
252-
python -m cibuildwheel --output-dir wheelhouse
239+
uses: pypa/cibuildwheel@v3.0.0
253240
env:
254241
CIBW_BUILD: ${{ matrix.build }}
255242
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
@@ -312,7 +299,7 @@ jobs:
312299
# Downloads SDL for the later step.
313300
run: python build_sdl.py
314301
- name: Build wheels
315-
uses: pypa/cibuildwheel@v2.23.3
302+
uses: pypa/cibuildwheel@v3.0.0
316303
env:
317304
CIBW_BUILD: ${{ matrix.python }}
318305
CIBW_ARCHS_MACOS: x86_64 arm64 universal2

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ filterwarnings = [
9999
"ignore:'import tcod as libtcodpy' is preferred.",
100100
]
101101

102+
[tool.cibuildwheel] # https://cibuildwheel.pypa.io/en/stable/options/
103+
enable = ["pypy"]
104+
102105
[tool.mypy]
103106
files = ["."]
104107
python_version = "3.10"

0 commit comments

Comments
 (0)