Skip to content

Commit

Permalink
cibuildwheels config: a few changes [skip ci]
Browse files Browse the repository at this point in the history
actions/upload-artifact@v4 requires that names are unique

stub generation fails on cp38-macosx_arm64

use fetching of zlib-ng
  • Loading branch information
wojdyr committed Feb 17, 2024
1 parent a090ba2 commit 29d28c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/wheels2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ on:
description: 'CIBW_SKIP'
# To limit the number of builds, skip most of musl-based versions,
# older PyPy versions, and 32-bit builds.
default: 'pp{37,38,39}-* cp{37,38,39}-musllinux* *_i686 *-win32'
default: 'pp{37,38,39}-* cp{37,38,39}-musllinux* *_i686 *-win32 cp38-macosx_arm64'
cibw_config_settings:
description: 'CIBW_CONFIG_SETTINGS'
default: ''

jobs:
build_wheels:
Expand All @@ -31,11 +34,12 @@ jobs:
env:
CIBW_BUILD: ${{ github.event.inputs.cibw_build }}
CIBW_SKIP: ${{ github.event.inputs.cibw_skip }}
CIBW_CONFIG_SETTINGS: ${{ github.event.inputs.cibw_config_settings }}

- run: ls -lh wheelhouse
shell: bash

- uses: actions/upload-artifact@v4
with:
name: wheels2
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: wheelhouse/*.whl
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ ignore-words-list = 'inout,fo,fom,te,nd,ser,unx,ket,acn,readd,conect'
build-verbosity = 1
test-command = "python -m unittest discover -v -s {project}/tests/"
[tool.cibuildwheel.environment]
SKBUILD_CMAKE_ARGS = '-DBUILD_GEMMI_PROGRAM=OFF;-DINSTALL_DEV_FILES=OFF;-DBUILD_SHARED_LIBS=OFF'
SKBUILD_CMAKE_ARGS = '-DBUILD_GEMMI_PROGRAM=OFF;-DINSTALL_DEV_FILES=OFF;-DBUILD_SHARED_LIBS=OFF;-DFETCH_ZLIB_NG=ON'

# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
[[tool.cibuildwheel.overrides]]
select = "cp38-macosx_arm64"
environment.SKBUILD_CMAKE_DEFINE = 'GENERATE_STUBS=OFF'

[tool.pylint]
basic.const-naming-style = "any"
Expand Down

0 comments on commit 29d28c7

Please sign in to comment.