Skip to content

Commit 740357d

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 Configure compile warnings to show but not fail on zlib implicit functions
1 parent f2e03d0 commit 740357d

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-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

build_libtcod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def walk_sources(directory: str) -> Iterator[str]:
199199
"-fPIC",
200200
"-Wno-deprecated-declarations",
201201
"-Wno-discarded-qualifiers", # Ignore discarded restrict qualifiers.
202+
"-Wno-error=implicit-function-declaration", # From zlib sources
202203
],
203204
}
204205

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)